Skip to content

Commit

Permalink
feat(ci): add release workflow (please work at the first attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Feb 14, 2025
1 parent 87c3935 commit c0069c6
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
push:
tags:
- "*"

jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
runs-on: ${{ matrix.platform.runs-on }}
strategy:
# Do not cancel the build process if any of them fails
fail-fast: false
matrix:
platform:
- os_name: Linux-x86_64
os: ubuntu-24.04
target: x86_64-unknown-linux-musl
- os_name: Linux-aarch64
os: ubuntu-24.04-arm
target: aarch64-unknown-linux-musl
- os_name: Darwin-x86_64
os: macos-13
target: x86_64-apple-darwin
- os_name: Darwin-aarch64
os: macos-latest
target: aarch64-apple-darwin
steps:
- uses: actions/checkout@v4
- name: Build
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
with:
executable-name: lith
extra-files:
- README.md
- LICENSE
target: ${{ matrix.platform.target }}

0 comments on commit c0069c6

Please sign in to comment.