Add simple build script

This commit is contained in:
2024-10-01 15:59:59 -05:00
parent 97d1c6c3c1
commit 49f6863a84
3 changed files with 53 additions and 0 deletions

40
.github/workflows/build.yaml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Build
on:
push:
paths-ignore:
- README.md
- .gitignore
- LICENSE
- run.sh
pull_request:
paths-ignore:
- README.md
- .gitignore
- LICENSE
- run.sh
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose --release
- name: Run tests
run: cargo test --verbose
# Publish flow
# - name: cargo login
# run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
# - name: "cargo release publish"
# run: cargo release publish --workspace --all-features --allow-branch HEAD --no-confirm --no-verify --execute