Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
siq1 committed Aug 30, 2024
1 parent c7b5f07 commit 7ef9914
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,23 @@ env:
RUST_BACKTRACE: 1

jobs:
build-rust:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
build-rust-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: . "$HOME/.cargo/env"
with:
workspaces: "expander_compiler -> expander_compiler/target"
- name: Build
run: cargo build --release --manifest-path=expander_compiler/ec_go_lib/Cargo.toml
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-ubuntu-latest
path: expander_compiler/target/release/libec_go_lib.*

build-rust-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -26,11 +38,11 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}
name: build-macos-latest
path: expander_compiler/target/release/libec_go_lib.*

upload-rust:
needs: build-rust
needs: [build-rust-macos, build-rust-linux]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -73,7 +85,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
needs: build-rust
needs: [build-rust-macos, build-rust-linux]
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v4
Expand Down

0 comments on commit 7ef9914

Please sign in to comment.