From 30136e9076152238ba762a37f7119837d164d6ee Mon Sep 17 00:00:00 2001 From: Annika Hannig Date: Wed, 21 Aug 2024 16:27:32 +0200 Subject: [PATCH] split workflows --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ .github/workflows/rust.yml | 21 +-------------------- 2 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2c11e1c --- /dev/null +++ b/.github/workflows/release.yml @@ -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/rust-build.action@v1.4.5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + EXTRA_FILES: "README.md LICENSE" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d57a403..50de96b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build and Test on: push: @@ -6,9 +6,6 @@ on: pull_request: branches: [ "main" ] - release: - types: [created] - env: CARGO_TERM_COLOR: always @@ -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/rust-build.action@v1.4.5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - RUSTTARGET: ${{ matrix.target }} - EXTRA_FILES: "README.md LICENSE"