fix
Some checks failed
build / Create Release (push) Successful in 4s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Failing after 8m6s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Has been cancelled

This commit is contained in:
2024-07-12 13:24:28 +02:00
parent 2afdc884bf
commit 330a620b6f

View File

@@ -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/ .