|
12 | 12 | runs-on: ubuntu-latest
|
13 | 13 | steps:
|
14 | 14 | - uses: actions/checkout@v4
|
15 |
| - - run: curl -L https://github.com/ispc/ispc/releases/download/v${{ env.ISPC_VERSION }}/ispc-v${{ env.ISPC_VERSION }}-linux.tar.gz | tar xzv ispc-v${{ env.ISPC_VERSION }}-linux/bin/ispc |
16 |
| - - run: realpath "ispc-v${{ env.ISPC_VERSION }}-linux/bin/" >> $GITHUB_PATH |
| 15 | + - run: curl -L https://github.com/ispc/ispc/releases/download/v$ISPC_VERSION/ispc-v$ISPC_VERSION-linux.tar.gz | tar xzv ispc-v$ISPC_VERSION-linux/bin/ispc |
| 16 | + - run: realpath "ispc-v$ISPC_VERSION-linux/bin/" >> $GITHUB_PATH |
17 | 17 | - run: cargo build --all --all-targets --features ispc
|
18 | 18 | - run: cargo clippy --all --all-targets --features ispc -- -D warnings
|
19 | 19 | - run: cargo test --all
|
|
26 | 26 | runs-on: macos-latest
|
27 | 27 | steps:
|
28 | 28 | - uses: actions/checkout@v4
|
29 |
| - - run: brew update |
30 |
| - - run: brew install ispc |
| 29 | + - name: Prepare Environment |
| 30 | + run: | |
| 31 | + curl -L https://github.com/ispc/ispc/releases/download/v$ISPC_VERSION/ispc-v$ISPC_VERSION-macOS.x86_64.tar.gz | tar xzv ispc-v$ISPC_VERSION-macOS.x86_64/bin/ispc |
| 32 | + echo "$PWD/ispc-v$ISPC_VERSION-macOS.x86_64/bin/" >> $GITHUB_PATH |
31 | 33 | - run: cargo build --all --all-targets --features ispc
|
32 | 34 | - run: cargo clippy --all --all-targets --features ispc -- -D warnings
|
33 | 35 | - run: cargo test --all
|
|
36 | 38 | steps:
|
37 | 39 | - uses: actions/checkout@v4
|
38 | 40 | - run: |
|
39 |
| - curl -LO https://github.com/ispc/ispc/releases/download/v${{ env.ISPC_VERSION }}/ispc-v${{ env.ISPC_VERSION }}-windows.zip |
40 |
| - unzip ispc-v${{ env.ISPC_VERSION }}-windows.zip ispc-v${{ env.ISPC_VERSION }}-windows/bin/ispc.exe |
41 |
| - Resolve-Path "ispc-v${{ env.ISPC_VERSION }}-windows/bin" | Add-Content -Path $env:GITHUB_PATH |
| 41 | + curl -LO https://github.com/ispc/ispc/releases/download/v$env:ISPC_VERSION/ispc-v$env:ISPC_VERSION-windows.zip |
| 42 | + unzip ispc-v$env:ISPC_VERSION-windows.zip ispc-v$env:ISPC_VERSION-windows/bin/ispc.exe |
| 43 | + Resolve-Path "ispc-v$env:ISPC_VERSION-windows/bin" | Add-Content -Path $env:GITHUB_PATH |
42 | 44 | - run: cargo build --all --all-targets --features ispc
|
43 | 45 | - run: cargo clippy --all --all-targets --features ispc -- -D warnings
|
44 | 46 | - run: cargo test --all
|
0 commit comments