fix
This commit is contained in:
@@ -54,8 +54,12 @@ jobs:
|
||||
run: |
|
||||
rustup update
|
||||
rustup toolchain install nightly
|
||||
- name: Create output directory
|
||||
- name: Create output directory for windows
|
||||
if: matrix.platform == 'windows-2022'
|
||||
run: mkdir -f output
|
||||
- name: Create output directory for linux
|
||||
if: matrix.platform != 'windows-2022'
|
||||
run: mkdir output
|
||||
- name: Build release
|
||||
run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output
|
||||
- name: Collect windows artifacts
|
||||
@@ -64,7 +68,7 @@ jobs:
|
||||
cp -r -fo assets $env:GITEA_WORKSPACE/output/
|
||||
Compress-Archive -Path $env:GITEA_WORKSPACE/output/* -DestinationPath $env:GITEA_WORKSPACE/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}
|
||||
- name: Collect linux/macos artifacts
|
||||
if: matrix.platform != 'windows-latest'
|
||||
if: matrix.platform != 'windows-2022'
|
||||
run: |
|
||||
cp -rf assets ${GITEA_WORKSPACE}/output/
|
||||
tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
|
||||
|
Reference in New Issue
Block a user