-
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 baf0ae4
Showing
1 changed file
with
19 additions
and
8 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 | ||
|
@@ -109,7 +113,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: | ||
|
@@ -134,7 +138,7 @@ jobs: | |
env: | ||
GOGC: 1 | ||
WEST_LOG: trace | ||
continue-on-error: ${{ matrix.config.os == 'ubuntu-latest' }} # TODO: remove | ||
continue-on-error: matrix.config.os == 'ubuntu-latest' # TODO: remove | ||
- run: git diff --exit-code | ||
|
||
test-dev: | ||
|
@@ -152,6 +156,13 @@ jobs: | |
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
- uses: msys2/setup-msys2@v2 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
msystem: MINGW64 | ||
update: true | ||
install: git mingw-w64-x86_64-toolchain | ||
path-type: inherit | ||
- run: rustup show | ||
- uses: Swatinem/[email protected] | ||
- uses: cargo-bins/[email protected] | ||
|
@@ -162,7 +173,7 @@ jobs: | |
env: | ||
GOGC: 1 | ||
WEST_LOG: trace | ||
continue-on-error: ${{ matrix.os == 'ubuntu-latest' }} # TODO: remove | ||
continue-on-error: matrix.os == 'ubuntu-latest' # TODO: remove | ||
- run: git diff --exit-code | ||
|
||
gofmt: | ||
|
@@ -226,13 +237,13 @@ jobs: | |
- name: dry-run publish ${{ matrix.crate }} to crates.io | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
continue-on-error: ${{ matrix.workspace-dependencies }} # publish may fail due to workspace crates not being published yet | ||
continue-on-error: matrix.workspace-dependencies # publish may fail due to workspace crates not being published yet | ||
run: cargo publish --dry-run | ||
working-directory: ./crates/${{ matrix.crate }} | ||
|
||
- name: publish ${{ matrix.crate }} to crates.io | ||
if: startsWith(github.ref, format('refs/tags/crates/{0}/v', matrix.crate)) && !steps.ctx.outputs.prerelease | ||
continue-on-error: ${{ github.repository_owner != 'rvolosatovs' }} | ||
continue-on-error: github.repository_owner != 'rvolosatovs' | ||
run: | | ||
pkgver=$(cargo pkgid | cut -d '@' -f 2) | ||
tagver="${{ steps.ctx.outputs.version }}" | ||
|