chore(gh_actions): add build template jobs
This commit is contained in:
22
.github/workflows/rust-build.yml
vendored
22
.github/workflows/rust-build.yml
vendored
@@ -6,24 +6,6 @@ on:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Build on ${{ matrix.os }}"
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Build project
|
||||
run: cargo build --release --all-features
|
||||
build-release:
|
||||
uses: cocool97/action_templates/.github/workflows/rust-build.yml@main
|
||||
|
||||
Reference in New Issue
Block a user