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

This commit is contained in:
2024-07-12 12:48:38 +02:00
parent b6f22f8586
commit 417d3cb582

View File

@@ -10,53 +10,56 @@ env:
OUT_DIR: ./output OUT_DIR: ./output
jobs: jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
with:
tag_name: ${{ gitea.ref }}
release_name: ${{ gitea.ref }}
draft: false
prerelease: false
publish: publish:
name: publish name: publish
# needs: needs:
# - release - release
strategy: strategy:
fail-fast: true fail-fast: true
matrix: matrix:
include: include:
- target: windows-2022 - suffix: windows-x86_64
suffix: windows-x86_64
platform: windows-2022 platform: windows-2022
archive: zip archive: zip
name: x86_64-pc-windows-msvc name: x86_64-pc-windows-msvc
- target: x86_64-unknown-linux-gnu - suffix: linux-x86_64
suffix: linux-x86_64
platform: ubuntu-latest platform: ubuntu-latest
archive: tar.gz archive: tar.gz
name: x86_64-unknown-linux-gnu name: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- name: Dump git[hub|ea] context - name: Ensure rust is up to date
run: | run: |
echo "$env:GITHUB_CONTEXT" rustup update
echo "$env:GITEA_CONTEXT" rustup toolchain install nightly
echo "$GITHUB_CONTEXT" - uses: actions/checkout@v4
echo "$GITEA_CONTEXT" - name: Create output directory
env: run: mkdir -f output
GITHUB_CONTEXT: ${{ toJson(github) }} - name: Build release
GITEA_CONTEXT: ${{ toJson(gitea) }} run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output
- name: Collect windows artifacts
# - name: Ensure rust is up to date if: matrix.platform != 'windows-2022'
# run: | shell: powershell
# rustup update run: |
# rustup toolchain install nightly cp -r -fo assets $env:GITEA_WORKSPACE/$env:OUT_DIR/
# - uses: actions/checkout@v4 Compress-Archive -Path $env:GITEA_WORKSPACE/$env:OUT_DIR/* -DestinationPath $env:GITEA_WORKSPACE/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}
# - name: Create output directory - name: Upload artifacts
# run: mkdir -f output uses: ncipollo/release-action@v1
# - name: Build release with:
# run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output allowUpdates: true
# - name: Collect windows artifacts artifacts: "${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}"
# if: matrix.platform != 'windows-2022'
# shell: powershell
# run: |
# cp -r -fo assets $env:GITHUB_WORKSPACE/$env:OUT_DIR/
# Compress-Archive -Path $env:GITHUB_WORKSPACE/$env:OUT_DIR/* -DestinationPath $env:GITHUB_WORKSPACE/mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }}
# - name: Upload artifacts
# uses: ncipollo/release-action@v1
# with:
# allowUpdates: true
# artifacts: "mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }}"