Skip to content

Commit

Permalink
github action: add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
blahgeek committed Jan 3, 2024
1 parent 29235c8 commit a4fd34a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Build and test

on:
push:
Expand All @@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
build-and-test:

runs-on: ubuntu-latest

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
release:
types: [created]

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl, x86_64-apple-darwin]
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}

0 comments on commit a4fd34a

Please sign in to comment.