Skip to content

Commit

Permalink
ci(build): update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <sam@secondstate.io>
  • Loading branch information
apepkuss committed Aug 26, 2024
1 parent 6614cb4 commit fcd4974
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,21 @@ jobs:
- name: Build api-server for linux
id: build_api_server_linux
if: startsWith(matrix.os, 'ubuntu')
env:
RUSTFLAGS: "--cfg wasmedge --cfg tokio_unstable"
run: |
cargo +nightly fmt --all -- --check
cargo +nightly clippy --target wasm32-wasip1 -- -D warnings
cargo build --release
cargo build --target wasm32-wasip1 --release
- name: Build api-server for macos
id: build_api_server_macos
if: startsWith(matrix.os, 'macos')
env:
WASI_SDK_PATH: /Users/runner/work/whisper-api-server/whisper-api-server/wasi-sdk-24.0
CC: "/Users/runner/work/whisper-api-server/whisper-api-server/wasi-sdk-24.0/bin/clang --sysroot=/Users/runner/work/whisper-api-server/whisper-api-server/wasi-sdk-24.0/share/wasi-sysroot"
RUSTFLAGS: "--cfg wasmedge --cfg tokio_unstable"
run: |
cargo +nightly fmt --all -- --check
cargo +nightly clippy --target wasm32-wasip1 -- -D warnings
cargo build --release
cargo build --target wasm32-wasip1 --release

0 comments on commit fcd4974

Please sign in to comment.