Skip to content

Commit

Permalink
go back to rust-cache to cache more stuff, maybe fix cross-compiled t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
jeromegn committed Aug 21, 2023
1 parent 1412618 commit 6a9dca2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,25 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1

- uses: rui314/setup-mold@v1

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_stable }}
target: ${{ matrix.target }}
# if: startsWith(matrix.os, 'ubuntu')

- uses: rui314/setup-mold@v1

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest

- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}

- uses: Swatinem/rust-cache@v2

- name: Test with latest nextest release
run: cargo nextest run --workspace --target ${{ matrix.target }}
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
- uses: rui314/setup-mold@v1

- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
if: startsWith(matrix.os, 'ubuntu')

- uses: rui314/setup-mold@v1

- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- uses: Swatinem/rust-cache@v2

- uses: taiki-e/upload-rust-binary-action@v1
with:
Expand Down

0 comments on commit 6a9dca2

Please sign in to comment.