Allow different versions of static files #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@1.82.0 | |
| - name: Build | |
| run: cargo build | |
| - name: Run tests | |
| run: cargo test | |
| - name: Build without default features | |
| run: cargo build --no-default-features | |
| - name: Run tests without default features | |
| run: cargo test --no-default-features --lib | |
| - name: Build with change detection | |
| run: cargo build --no-default-features --features change-detection | |
| - name: Run tests with change detection | |
| run: cargo test --no-default-features --features change-detection | |
| - name: Build with all features | |
| run: cargo build --all-features | |
| publish: | |
| name: Publish | |
| if: startsWith( github.ref, 'refs/tags/v' ) | |
| uses: ./.github/workflows/release.yml | |
| needs: build | |
| secrets: inherit |