Skip to content

Commit

Permalink
Update workflow profile
Browse files Browse the repository at this point in the history
  • Loading branch information
hafeoz committed Jan 31, 2025
1 parent c2228bd commit 51e56ab
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
on:
release:
types: [created]
push:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
release:
name: release ${{ matrix.target }}
name: Build and publish as release
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
- target: x86_64-apple-darwin
archive: zip
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@master
- name: Install Toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
- name: Build
run: cargo build --release --target=x86_64-unknown-linux-musl
- name: Release
uses: softprops/action-gh-release@master
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
files: target/x86_64-unknown-linux-musl/release/waylrc

0 comments on commit 51e56ab

Please sign in to comment.