Skip to content

Commit

Permalink
CI: Run cargo-c in offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
barrbrain committed Nov 16, 2021
1 parent 49d1432 commit 0f05413
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
run: strip target/release/rav1e.exe

- name: Run cargo-c
run: cargo cinstall --release --destdir="C:\"
run: |
cargo fetch
cargo cinstall --release --destdir="C:\" --offline
- name: Rename cargo-c folder
run: Rename-Item "C:\usr\local" "C:\usr\rav1e-windows-${{ matrix.conf }}-sdk"
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/rav1e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ jobs:
- name: Run cargo-c
if: matrix.conf == 'cargo-c'
run: |
cargo cbuild
cargo fetch
cargo cbuild --offline
- name: Install cargo-fuzz
if: matrix.conf == 'fuzz'
run: |
Expand Down Expand Up @@ -396,7 +397,8 @@ jobs:
- name: Run cargo-c
if: matrix.conf == 'cargo-c'
run: |
cargo cbuild --target=${{ matrix.target }}
cargo fetch
cargo cbuild --target=${{ matrix.target }} --offline
- name: Stop sccache server
run: |
sccache --stop-server
Expand Down Expand Up @@ -497,7 +499,8 @@ jobs:
- name: Run cargo-c
if: matrix.conf == 'cargo-c'
run: |
cargo cbuild
cargo fetch
cargo cbuild --offline
- name: Stop sccache server
run: |
sccache --stop-server

0 comments on commit 0f05413

Please sign in to comment.