worspace path
Some checks failed
build / Create Release (push) Successful in 4s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Successful in 8m7s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Failing after 12m5s

This commit is contained in:
2024-07-12 13:37:53 +02:00
parent 27d21b0367
commit 3748270003

View File

@@ -44,42 +44,36 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Log - name: Setup Rust toolchain and cache
if: matrix.platform != 'windows-2022'
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Ensure rust is up to date
if: matrix.platform == 'windows-2022'
run: | run: |
echo "$env:GITEA_WORKSPACE" rustup update
echo "$env:GITHUB_WORKSPACE" rustup toolchain install nightly
echo "$GITEA_WORKSPACE" - name: Create output directory for windows
echo "$GITHUB_WORKSPACE" if: matrix.platform == 'windows-2022'
# - name: Setup Rust toolchain and cache run: mkdir -f output
# if: matrix.platform != 'windows-2022' - name: Create output directory for linux
# uses: actions-rust-lang/setup-rust-toolchain@v1 if: matrix.platform != 'windows-2022'
# with: run: mkdir output
# toolchain: nightly - name: Build release
# - name: Ensure rust is up to date run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output
# if: matrix.platform == 'windows-2022' - name: Collect windows artifacts
# run: | if: matrix.platform == 'windows-2022'
# rustup update run: |
# rustup toolchain install nightly cp -r -fo assets $env:GITHUB_WORKSPACE/output/
# - name: Create output directory for windows Compress-Archive -Force -Path $env:GITHUB_WORKSPACE/output/* -DestinationPath $env:GITHUB_WORKSPACE/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}
# if: matrix.platform == 'windows-2022' - name: Collect linux/macos artifacts
# run: mkdir -f output if: matrix.platform != 'windows-2022'
# - name: Create output directory for linux run: |
# if: matrix.platform != 'windows-2022' cp -rf assets ${GITHUB_WORKSPACE}/output/
# run: mkdir output tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
# - name: Build release - name: Upload artifacts
# run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output uses: ncipollo/release-action@v1
# - name: Collect windows artifacts with:
# if: matrix.platform == 'windows-2022' allowUpdates: true
# run: | artifacts: "${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}"
# 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-2022'
# run: |
# cp -rf assets ${GITEA_WORKSPACE}/output/
# tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
# - name: Upload artifacts
# uses: ncipollo/release-action@v1
# with:
# allowUpdates: true
# artifacts: "${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}"