fix build issue

This commit is contained in:
Droid-MAX
2023-04-20 09:17:07 +08:00
parent 1d64cfc930
commit 5a778d5fc3
+18 -18
View File
@@ -13,23 +13,23 @@ defaults:
shell: bash shell: bash
jobs: jobs:
test: # test:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: Init submodules # - name: Init submodules
uses: snickerbockers/submodules-init@v4 # uses: snickerbockers/submodules-init@v4
- name: Cargo cache # - name: Cargo cache
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: | # path: |
~/.cargo/registry # ~/.cargo/registry
./target # ./target
key: test-cargo-registry # key: test-cargo-registry
- name: List # - name: List
run: find ./ # run: find ./
- name: Run tests # - name: Run tests
run: cargo test --verbose # run: cargo test --verbose
build: build:
strategy: strategy:
@@ -102,7 +102,7 @@ jobs:
- name: Install rust target - name: Install rust target
run: rustup target add $TARGET run: rustup target add $TARGET
- name: Run build - name: Run build
run: cargo build --release --verbose --target $TARGET run: cargo build --package switch-desktop --release --verbose --target $TARGET
- name: List target - name: List target
run: find ./target run: find ./target
- name: Compress - name: Compress