worspace path
This commit is contained in:
@@ -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 }}"
|
|
||||||
|
Reference in New Issue
Block a user