Skip to content

Commit

Permalink
[github] fixes CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
hkrn committed Mar 30, 2024
1 parent 29914e1 commit 3d0a849
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
ICU_VERSION_TAG: release-71-1
NANOEM_BUILD_DEPENDENCIES_DIRECTORY: ${{ github.workspace }}/out/dependencies
NANOEM_BUILD_ARTIFACT_DIRECTORY: ${{ github.workspace }}/out/core
NANOEM_RUST_DIRECTORY: ${{ github.workspace }}/rust

jobs:
build-linux:
Expand Down Expand Up @@ -171,7 +172,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/rust
working-directory: ${{ env.NANOEM_RUST_DIRECTORY }}
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -182,10 +183,13 @@ jobs:
- name: setup rust toolchain (stable and wasm32-wasi)
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-workspaces: ${{ env.NANOEM_RUST_DIRECTORY }}
components: rustfmt
target: wasm32-wasi
- name: run rustfmt for check
uses: actions-rust-lang/rustfmt@v1
with:
manifest-path: ${{ env.NANOEM_RUST_DIRECTORY }}/Cargo.toml
- name: setup prerequisite packages
run: |
sudo apt-get update && sudo apt-get install -y \
Expand Down

0 comments on commit 3d0a849

Please sign in to comment.