This commit is contained in:
27
.gitea/workflows/cd.yaml
Normal file
27
.gitea/workflows/cd.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
on: [push]
|
||||
|
||||
name: Continuous Releases
|
||||
|
||||
env:
|
||||
TARGET_PLATFORM: x86_64-pc-windows-gnu
|
||||
APT_PACKAGES: mingw-w64
|
||||
|
||||
jobs:
|
||||
build_windows:
|
||||
name: build (windows)
|
||||
container:
|
||||
image: tea.werats.gay/laurayka/ci-rust-img:0.5.0
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: echo "/root/.cargo/bin" >> $GITHUB_PATH
|
||||
- run: cargo build --release --target "${{ env.TARGET_PLATFORM }}"
|
||||
- uses: https://gitea.com/actions/gitea-release-action@main
|
||||
env:
|
||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||
NODE_TLS_REJECT_UNAUTHORIZED: "false"
|
||||
with:
|
||||
tag_name: rc-${{ env.GITHUB_SHA }}
|
||||
files: |-
|
||||
target/*/release/mimic3-keyboard*
|
||||
27
.gitea/workflows/ci.yaml
Normal file
27
.gitea/workflows/ci.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
on: [pull_request]
|
||||
|
||||
name: Continuous integration
|
||||
|
||||
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:
|
||||
name: build
|
||||
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 }}"
|
||||
Reference in New Issue
Block a user