diff --git a/.github/workflows/docker-build-static.yml b/.github/workflows/docker-build-static.yml index 0797fbb..d331127 100644 --- a/.github/workflows/docker-build-static.yml +++ b/.github/workflows/docker-build-static.yml @@ -60,8 +60,25 @@ env: # cache based on Cargo.lock per cargo target jobs: + pre_job: + continue-on-error: true + runs-on: ubuntu-latest + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@master + with: + concurrent_skipping: 'outdated_runs' + skip_after_successful_duplicate: 'true' + paths_ignore: '["**/*.md", "**/docs/**", "example_configs/**", "*.sh", ".gitignore", "lldap_config.docker_template.toml"]' + do_not_skip: '["workflow_dispatch", "schedule"]' + cancel_others: true + build-ui: runs-on: ubuntu-latest + needs: pre_job + if: ${{ needs.pre_job.outputs.should_skip != 'true' }} container: image: nitnelave/rust-dev:latest steps: @@ -99,6 +116,8 @@ jobs: build-bin: runs-on: ubuntu-latest + needs: pre_job + if: ${{ needs.pre_job.outputs.should_skip != 'true' }} strategy: matrix: target: [armv7-unknown-linux-gnueabihf, aarch64-unknown-linux-musl, x86_64-unknown-linux-musl] diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8157a38..4fab622 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,7 +13,6 @@ jobs: pre_job: continue-on-error: true runs-on: ubuntu-latest - # Map a step output to a job output outputs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: @@ -22,7 +21,7 @@ jobs: with: concurrent_skipping: 'outdated_runs' skip_after_successful_duplicate: 'true' - paths_ignore: '["**/*.md", "**/docs/**", "example_configs/**", "*.sh"]' + paths_ignore: '["**/*.md", "**/docs/**", "example_configs/**", "*.sh", ".dockerignore", ".gitignore", "lldap_config.docker_template.toml", "Dockerfile"]' do_not_skip: '["workflow_dispatch", "schedule"]' cancel_others: true