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