Skip to content

Commit

Permalink
feat(github actions): first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
stvnksslr committed Oct 1, 2024
1 parent d2ed238 commit 1bd6151
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
push:
tags: [ 'v*.*.*' ]

jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
strategy:
matrix:
platform:
- os_name: Windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
skip_tests: true

- os_name: Linux-x86_64
os: ubuntu-20.04
target: x86_64-unknown-linux-musl

- os_name: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin

- os_name: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin

runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true

- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
with:
target: ${{ matrix.platform.target }}
executable-name: 'uv-migrator'
if: matrix.toolchain == 'stable'

0 comments on commit 1bd6151

Please sign in to comment.