Skip to content

Commit

Permalink
Merge pull request #1 from Rovel/add-releases
Browse files Browse the repository at this point in the history
Add releases
  • Loading branch information
Rovel authored Feb 17, 2024
2 parents f74d76f + 19b4d1d commit 48741f3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Rust Multi-Arch Build

on:
push:
branches:
Expand All @@ -19,11 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install cross
run: cargo install cross
- name: Test binary
Expand All @@ -42,17 +37,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install cross
run: cargo install cross
- name: Build binary
run: cross build --target ${{ matrix.target }} --release
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Tag and Release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}

0 comments on commit 48741f3

Please sign in to comment.