-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Roman Volosatovs <[email protected]>
- Loading branch information
1 parent
609ddb9
commit 2501485
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,11 @@ jobs: | |
- aarch64-unknown-linux-musl | ||
- aarch64-linux-android | ||
- riscv64gc-unknown-linux-gnu | ||
- x86_64-pc-windows-gnu | ||
- x86_64-unknown-linux-musl | ||
# TODO: figure out what's different in Mac libraries built this way | ||
# TODO: figure out what's different in Mac/Windows libraries built this way | ||
#- aarch64-apple-darwin | ||
#- x86_64-apple-darwin | ||
#- x86_64-pc-windows-gnu | ||
|
||
name: west-${{ matrix.target }} | ||
runs-on: ubuntu-latest | ||
|
@@ -44,10 +44,14 @@ jobs: | |
with: | ||
package: west-${{ matrix.target }} | ||
|
||
build-ffi-darwin: | ||
build-ffi-rustup: | ||
strategy: | ||
matrix: | ||
config: | ||
- os: windows-latest | ||
lib: x86_64-windows | ||
target: x86_64-pc-windows-gnu | ||
|
||
- os: macos-13 | ||
lib: x86_64-darwin | ||
target: x86_64-apple-darwin | ||
|
@@ -64,6 +68,7 @@ jobs: | |
- uses: Swatinem/[email protected] | ||
- run: cargo build -p west-sys --release | ||
- run: mkdir -p artifact/lib | ||
- run: ls -R target/release | ||
- run: mv target/release/libwest_sys.a artifact/lib/libwest_sys.a | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -96,7 +101,7 @@ jobs: | |
|
||
- os: windows-latest | ||
lib: x86_64-windows | ||
target: x86_64-pc-windows-gnu | ||
target: x86_64-pc-windows-msvc | ||
|
||
- os: macos-13 | ||
lib: x86_64-darwin | ||
|
@@ -109,7 +114,7 @@ jobs: | |
name: test-release (${{ matrix.config.os }}) | ||
needs: | ||
- build-ffi | ||
- build-ffi-darwin | ||
- build-ffi-rustup | ||
- build-wasm | ||
runs-on: ${{ matrix.config.os }} | ||
steps: | ||
|
@@ -154,6 +159,7 @@ jobs: | |
go-version-file: 'go.mod' | ||
- run: rustup show | ||
- uses: Swatinem/[email protected] | ||
- run: cargo build -p west-sys | ||
- uses: cargo-bins/[email protected] | ||
- run: cargo binstall -y [email protected] | ||
- run: cargo test --workspace --all-targets | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters