Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build the builder weekly and use it for tests #41

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .github/workflows/ci-approval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup cache
uses: actions/cache@v2
with:
path: ci_cache
key: ${{ runner.os }}-build-${{ hashFiles('scripts/ci-install.sh') }}

- uses: dorny/paths-filter@v2
id: changes
with:
Expand All @@ -31,14 +25,9 @@ jobs:
run: |
echo "::set-output name=run_test::true"


- name: Prepare tests
if: steps.should_test.outputs.run_test == 'true'
run: docker build -t klipper-build -f scripts/Dockerfile-build .

- name: Test
if: steps.should_test.outputs.run_test == 'true'
run: docker run klipper-build "./scripts/ci-build.sh" 2>&1
run: docker run ${{ secrets.DOCKERHUB_USERNAME }}/klipper-build:latest "./scripts/ci-build.sh" 2>&1

- name: Upload micro-controller data dictionaries
if: steps.should_test.outputs.run_test == 'true'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-builder.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Klipper Container Build and Push

on: workflow_dispatch
on:
schedule:
- cron: "0 0 * * 0" # at 00.00 on Sunday

jobs:
login:
Expand Down
Loading