add release job
All checks were successful
Continuous integration / Check (push) Successful in 3m0s
Continuous integration / build (push) Successful in 2m59s

This commit is contained in:
Eau
2026-03-18 00:23:00 -05:00
parent bd8945ccd8
commit e042e8b7cc

34
.gitea/workflows/cd.yaml Normal file
View File

@@ -0,0 +1,34 @@
on: [push]
name: Continuous Releases
env:
TARGET_PLATFORM: x86_64-pc-windows-gnu
APT_PACKAGES: mingw-w64
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: apt update && apt install -y ${{ env.APT_PACKAGES }}
- run: rustup target add "${{ env.TARGET_PLATFORM }}"
- run: cargo check --target "${{ env.TARGET_PLATFORM }}"
build_windows:
name: build (windows)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: apt update && apt install -y ${{ env.APT_PACKAGES }}
- run: rustup target add "${{ env.TARGET_PLATFORM }}"
- run: cargo build --target "${{ env.TARGET_PLATFORM }}"
- uses: actions/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
NODE_TLS_REJECT_UNAUTHORIZED=false
with:
files: |-
target/${{ env.TARGET_PLATFORM }}/mimic3-keyboard*