Skip to content

Commit

Permalink
split workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
annikahannig committed Aug 21, 2024
1 parent 63158c0 commit 30136e9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
release:
types: [created]

env:
CARGO_TERM_COLOR: always

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE"
21 changes: 1 addition & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Rust
name: Build and Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

release:
types: [created]

env:
CARGO_TERM_COLOR: always

Expand All @@ -24,19 +21,3 @@ jobs:
- name: Run tests
run: cargo test --verbose

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

0 comments on commit 30136e9

Please sign in to comment.