build(deps): bump the minor-updates group across 1 directory with 3 updates #1008
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
| on: | |
| - push | |
| - pull_request | |
| name: Test Suite | |
| permissions: read-all | |
| env: | |
| CARGO_TERM_COLOR: always | |
| # sccache enablement | |
| # SCCACHE_GHA_ENABLED: true | |
| # RUSTC_WRAPPER: sccache | |
| jobs: | |
| clippy_check: | |
| name: Clippy Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | |
| with: | |
| egress-policy: audit | |
| # - name: Configure sccache | |
| # uses: actions/github-script@v7 | |
| # with: | |
| # script: | | |
| # core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); | |
| # core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # - name: Install dependencies (for 'tauri' flag) | |
| # # You can remove libayatana-appindicator3-dev if you don't use the system tray feature. | |
| # run: | | |
| # sudo apt-get update | |
| # sudo apt-get install -y libwebkit2gtk-4.0-dev \ | |
| # build-essential \ | |
| # curl \ | |
| # wget \ | |
| # file \ | |
| # libssl-dev \ | |
| # libgtk-3-dev \ | |
| # libayatana-appindicator3-dev \ | |
| # librsvg2-dev | |
| # sudo apt-get install -y javascriptcoregtk-4.1 \ | |
| # libsoup-3.0 \ | |
| # webkit2gtk-4.1 | |
| # - name: Run sccache-cache | |
| # uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # 0.0.4 | |
| - uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # master | |
| with: | |
| targets: x86_64-unknown-linux-gnu | |
| toolchain: stable | |
| components: clippy | |
| - name: Build | |
| run: cargo build | |
| # - name: Show sccache stats | |
| # shell: bash | |
| # run: | | |
| # echo '## SCCACHE STATS' >> $GITHUB_STEP_SUMMARY | |
| # echo '| Metric | Value |' >> $GITHUB_STEP_SUMMARY | |
| # echo '|--------|-------|' >> $GITHUB_STEP_SUMMARY | |
| # ${SCCACHE_PATH} --show-stats | awk -F'[[:space:]][[:space:]]+' 'NR<=22{ print "| "$1" | "$2" |"}' >> $GITHUB_STEP_SUMMARY | |
| # echo '</hr>' >> $GITHUB_STEP_SUMMARY | |
| - name: Run clippy | |
| run: cargo clippy -- -D warnings | |
| verify_bindings: | |
| name: Verify Type Bindings | |
| needs: clippy_check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | |
| with: | |
| egress-policy: audit | |
| # - name: Configure sccache | |
| # uses: actions/github-script@v7 | |
| # with: | |
| # script: | | |
| # core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); | |
| # core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # - name: Run sccache-cache | |
| # uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # 0.0.4 | |
| - uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # master | |
| with: | |
| targets: x86_64-unknown-linux-gnu | |
| toolchain: stable | |
| - name: Install bun | |
| uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3 #v1 | |
| - name: Generate Type Bindings | |
| run: | | |
| cargo build | |
| cargo test | |
| - name: Check for changes | |
| run: | | |
| git diff --exit-code | |
| test_parsing: | |
| name: Test Parsing | |
| needs: clippy_check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | |
| with: | |
| egress-policy: audit | |
| # - name: Configure sccache | |
| # uses: actions/github-script@v7 | |
| # with: | |
| # script: | | |
| # core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); | |
| # core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
| - name: Vanilla Raws Cache | |
| id: vanilla-raws-cache | |
| uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 | |
| with: | |
| key: vanilla-raws-${{ vars.DF_VERSION }} | |
| path: /home/runner/vanilla-raws | |
| - name: Download Vanilla Raws Bundle | |
| if: ${{ steps.vanilla-raws-cache.outputs.cache-hit != 'true' }} | |
| run: | | |
| wget -O vanilla-raws.zip https://build-deps.ci.nwest.one/dwarffortress/vanilla_${{ vars.DF_VERSION }}.zip | |
| unzip -d /home/runner/vanilla-raws vanilla-raws.zip | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| # - name: Run sccache-cache | |
| # uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # 0.0.4 | |
| - uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # master | |
| with: | |
| toolchain: stable | |
| - name: Build CLI | |
| run: cargo build | |
| # TODO: Add various parsing scenarios (e.g. a single raw, an entire module, all vanilla, the info.txt files, etc.) | |
| # The idea being the logs from the parsing tests will be useful for reference | |
| # `cargo run` will run the cli automatically | |
| - name: Parse creature_birds.txt with creature variation support | |
| run: | |
| cargo run -- -r /home/runner/vanilla-raws/vanilla_creatures/objects/creature_birds.txt -r | |
| /home/runner/vanilla-raws/vanilla_creatures/objects/c_variation_default.txt |