Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
catoa committed Jan 3, 2025
1 parent 81eeb6b commit f7dd4e6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,20 @@ on:
- "v*"

jobs:
test:
name: Test
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test
build-and-release:
name: Build and upload
runs-on: ${{ matrix.os }}
needs: test
strategy:
matrix:
include:
- build: linux
os: ubuntu-22.04
- os: ubuntu-22.04
target: x86_64-unknown-linux-musl
- build: macos
os: macos-latest
- os: macos-latest
target: x86_64-apple-darwin
- build: macos
os: macos-latest
- os: macos-latest
target: aarch64-apple-darwin
# - build: windows-gnu
# os: windows-latest
# - os: windows-latest
# target: x86_64-pc-windows-gnu
steps:
- name: Checkout
Expand All @@ -42,8 +31,9 @@ jobs:
with:
toolchain: stable
target: ${{ matrix.target }}
- run: cargo test
- name: Build the project
run: cargo build --release
run: cargo build --release --target ${{ matrix.target }}
- name: Build archive
shell: bash
if: startsWith(github.ref, 'refs/tags/')
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- build: linux
os: ubuntu-22.04
target: x86_64-unknown-linux-musl
- build: macos
os: macos-latest
target: x86_64-apple-darwin
- build: macos
os: macos-latest
target: aarch64-apple-darwin
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down

0 comments on commit f7dd4e6

Please sign in to comment.