Compare commits

...

5 Commits

Author SHA1 Message Date
valhrafnaz
a011940348
created rust build workflow
Some checks are pending
Rust / build (push) Waiting to run
2024-11-21 18:19:54 +01:00
valhrafnaz
d23f271bca
Added rust CI for pushes/PR to main 2024-11-21 18:17:53 +01:00
valhrafnaz
a71974b8f4
Delete .github/workflows/rust.yml 2024-11-21 18:17:02 +01:00
valhrafnaz
38548b86db
Update rust.yml 2024-11-21 18:07:01 +01:00
valhrafnaz
1b04275f10
Create rust.yml github workflow 2024-11-21 18:02:46 +01:00
2 changed files with 51 additions and 0 deletions

29
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,29 @@
# .github/workflows/release.yml
on:
release:
types: [created]
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}

22
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose