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 }}"
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/target
|
||||
7
Cargo.lock
generated
Normal file
7
Cargo.lock
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "dndcli"
|
||||
version = "0.1.0"
|
||||
6
Cargo.toml
Normal file
6
Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "dndcli"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
3
src/main.rs
Normal file
3
src/main.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Reference in New Issue
Block a user