chore: add release action

This commit is contained in:
2025-08-04 08:59:24 +07:00
parent ed6e4f2082
commit ab4597cb6f
3 changed files with 139 additions and 88 deletions

View File

@@ -2,29 +2,31 @@ name: Rust
on:
push:
branches: [ "**" ]
branches: ["**"]
pull_request:
branches: [ "m**" ]
branches: ["m**"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rustup: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: script/linux
run: chmod +x ./script/linux && ./script/linux
if: matrix.os == 'ubuntu-latest'
#- name: cargo update
# run: cargo update
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
- name: script/linux
run: chmod +x ./script/linux && ./script/linux
if: matrix.os == 'ubuntu-latest'
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose