From 741902708b7c3d7dbcceeb653cf4ffa7c06f8c6d Mon Sep 17 00:00:00 2001 From: Avii Date: Fri, 12 Jul 2024 12:36:01 +0200 Subject: [PATCH] dumpert --- .gitea/workflows/build-windows.yaml | 56 ++++++++++++++++++++++++----- .gitignore | 1 + 2 files changed, 49 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build-windows.yaml b/.gitea/workflows/build-windows.yaml index 1c83650..6fb683f 100644 --- a/.gitea/workflows/build-windows.yaml +++ b/.gitea/workflows/build-windows.yaml @@ -7,14 +7,54 @@ on: env: CARGO_TERM_COLOR: always + OUT_DIR: ./output jobs: - build: - runs-on: windows-2022 - defaults: - run: - shell: powershell + publish: + name: publish ${{ matrix.name }} + needs: + - release + strategy: + fail-fast: true + matrix: + include: + - target: windows-2022 + suffix: windows-x86_64 + platform: windows-latest + archive: zip + name: x86_64-pc-windows-msvc + - target: x86_64-unknown-linux-gnu + suffix: linux-x86_64 + platform: ubuntu-latest + archive: tar.gz + name: x86_64-unknown-linux-gnu + runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 - - name: Build release - run: cargo b -r + - name: Dump git[hub|ea] context + run: | + echo "$env:GITHUB_CONTEXT" + echo "$env:GITEA_CONTEXT" + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + GITEA_CONTEXT: ${{ toJson(gitea) }} + + # - name: Ensure rust is up to date + # run: | + # rustup update + # rustup toolchain install nightly + # - uses: actions/checkout@v4 + # - name: Create output directory + # run: mkdir -f output + # - name: Build release + # run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output + # - name: Collect windows artifacts + # 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 }}" diff --git a/.gitignore b/.gitignore index 9026c77..387501a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target .vscode +/output \ No newline at end of file