Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdy committed Jun 15, 2023
1 parent 453006c commit 5cce9c0
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
os: ubuntu-latest
asset_name: 0s-${{ github.event.release.tag_name || github.head_ref }}-linux-x86_64
target: x86_64-unknown-linux-musl
cross: true
cross: false

- name: macos
os: macos-latest
Expand Down Expand Up @@ -88,14 +88,30 @@ jobs:
if: matrix.os == 'macos-latest'
run: brew install macfuse

- name: Install deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get -y install \
fuse3 libfuse3-dev libfuse-dev \
musl-tools musl-dev
- name: Test
if: matrix.target != 'aarch64-apple-darwin'
if: matrix.target != 'aarch64-apple-darwin' || matrix.target != 'x86_64-pc-windows-msvc'
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.cross }}
args: --locked --target ${{ matrix.target }} --release
command: test

- name: Test
if: matrix.target == 'x86_64-pc-windows-msvc'
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.cross }}
args: --locked --target ${{ matrix.target }} --release -p zerostash -p zerostash-files
command: test

- name: Build
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 5cce9c0

Please sign in to comment.