fix(ci/windows): generate deno snapshot on Linux, download on Windows #280
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
| # File Storage Language Tests - Uses Docker container for consistent environment | |
| # Migrated from Tryorama (TypeScript) to sweettest (Rust) for stability | |
| name: File Storage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - staging | |
| - bootstrap-languages | |
| jobs: | |
| sweettest: | |
| name: Sweettest | |
| runs-on: ubuntu-latest | |
| container: | |
| image: coasys/ad4m-ci-linux:latest@sha256:a0ab4b6358b7314a2ad49e232ba6c53b28a56e7f02641f226b2ed05544cc66d8 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Cache Rust dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| bootstrap-languages/file-storage/hc-dna/target/ | |
| key: ${{ runner.os }}-file-storage-rust-${{ hashFiles('bootstrap-languages/file-storage/hc-dna/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-file-storage-rust- | |
| # Rust toolchain configured via rust-toolchain.toml | |
| - name: Verify Rust toolchain | |
| run: rustc --version && cargo --version && hc --version | |
| - name: Build DNA | |
| working-directory: bootstrap-languages/file-storage/hc-dna | |
| run: bash build.sh | |
| - name: Run sweettest integration tests | |
| working-directory: bootstrap-languages/file-storage/hc-dna/tests/sweettest | |
| run: cargo test --test integration -- --nocapture | |
| - name: Save Rust cache | |
| if: success() | |
| uses: actions/cache/save@v3 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| bootstrap-languages/file-storage/hc-dna/target/ | |
| key: ${{ runner.os }}-file-storage-rust-${{ hashFiles('bootstrap-languages/file-storage/hc-dna/Cargo.lock') }} |