Compare commits

...

15 Commits

Author SHA1 Message Date
ced7f9be8a yes toi all
All checks were successful
build / Create Release (push) Successful in 8s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Successful in 9m0s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Successful in 18m3s
2024-07-12 13:58:33 +02:00
a662dca9ef derp
Some checks failed
build / Create Release (push) Successful in 4s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Failing after 18s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Has been cancelled
2024-07-12 13:56:44 +02:00
0fae253761 deps
Some checks failed
build / Create Release (push) Successful in 5s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Failing after 3s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Failing after 3s
2024-07-12 13:55:25 +02:00
7a6b8fb5f7 different release action 2024-07-12 13:54:25 +02:00
3748270003 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
2024-07-12 13:37:53 +02:00
27d21b0367 rwar
All checks were successful
build / Create Release (push) Successful in 4s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Successful in 3s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Successful in 11s
2024-07-12 13:36:30 +02:00
330a620b6f 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
2024-07-12 13:24:28 +02:00
2afdc884bf windows not supported by action
Some checks failed
build / Create Release (push) Has been cancelled
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Has been cancelled
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Has been cancelled
2024-07-12 13:14:29 +02:00
bbc9489692 try setup toolchain in windows
Some checks failed
build / Create Release (push) Successful in 7s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Failing after 14s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Has been cancelled
2024-07-12 13:08:43 +02:00
3b76f31071 checkout first
Some checks failed
build / Create Release (push) Successful in 4s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Has been cancelled
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Has been cancelled
2024-07-12 13:05:55 +02:00
fc12361a1d tag_name important probably
Some checks failed
build / Create Release (push) Successful in 4s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Has been cancelled
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Has been cancelled
2024-07-12 13:03:21 +02:00
11297c9a56 publish
Some checks failed
build / Create Release (push) Failing after 2s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Has been skipped
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Has been skipped
2024-07-12 12:55:35 +02:00
417d3cb582 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
2024-07-12 12:48:38 +02:00
b6f22f8586 diff
All checks were successful
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64, x86_64-unknown-linux-gnu) (push) Successful in 1s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64, windows-2022) (push) Successful in 3s
2024-07-12 12:40:33 +02:00
aaa82bb241 derp 2024-07-12 12:40:10 +02:00

View File

@@ -2,59 +2,81 @@ name: build
on: on:
push: push:
branches: tags:
- "main" - "v*"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
OUT_DIR: ./output
jobs: jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
with:
tag_name: ${{ gitea.ref }}
release_name: "${{ gitea.event.repository.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-latest
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: Checkout code
uses: actions/checkout@v4
- name: Install alsa and udev
if: matrix.platform == 'ubuntu-latest'
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev
- name: Setup Rust toolchain and cach
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:GITHUB_CONTEXT" rustup update
echo "$env:GITEA_CONTEXT" rustup toolchain install nightly
env: - name: Create output directory for windows
GITHUB_CONTEXT: ${{ toJson(github) }} if: matrix.platform == 'windows-2022'
GITEA_CONTEXT: ${{ toJson(gitea) }} run: mkdir -f output
- name: Create output directory for linux
# - name: Ensure rust is up to date if: matrix.platform != 'windows-2022'
# run: | run: mkdir output
# rustup update - name: Build release
# rustup toolchain install nightly run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output
# - uses: actions/checkout@v4 - name: Collect windows artifacts
# - name: Create output directory if: matrix.platform == 'windows-2022'
# run: mkdir -f output run: |
# - name: Build release cp -r -fo assets $env:GITHUB_WORKSPACE/output/
# run: cargo +nightly -Z unstable-options b -r --artifact-dir ./output Compress-Archive -Force -Path $env:GITHUB_WORKSPACE/output/* -DestinationPath $env:GITHUB_WORKSPACE/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}
# - name: Collect windows artifacts - name: Collect linux/macos artifacts
# if: matrix.platform != 'windows-2022' if: matrix.platform != 'windows-2022'
# shell: powershell run: |
# run: | cp -rf assets ${GITHUB_WORKSPACE}/output/
# cp -r -fo assets $env:GITHUB_WORKSPACE/$env:OUT_DIR/ tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
# Compress-Archive -Path $env:GITHUB_WORKSPACE/$env:OUT_DIR/* -DestinationPath $env:GITHUB_WORKSPACE/mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }} - name: Upload artifacts
# - name: Upload artifacts uses: akkuman/gitea-release-action@v1
# uses: ncipollo/release-action@v1 with:
# with: allowUpdates: true
# allowUpdates: true files: "${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}"
# artifacts: "mosquitoswatter_${{ matrix.name }}.${{ matrix.archive }}"