mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-07 16:54:07 +00:00
Update release.yml
This commit is contained in:
71
.github/workflows/release.yml
vendored
71
.github/workflows/release.yml
vendored
@ -1,28 +1,53 @@
|
||||
|
||||
# on:
|
||||
# release:
|
||||
# types: [created]
|
||||
|
||||
# jobs:
|
||||
# release:
|
||||
# name: release ${{ matrix.target }}
|
||||
# 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/rust-build.action@v1.4.3
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# RUSTTARGET: ${{ matrix.target }}
|
||||
# ARCHIVE_TYPES: ${{ matrix.archive }}
|
||||
|
||||
|
||||
name: Rust-static-build
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
BUILD_TARGET: x86_64-unknown-linux-musl
|
||||
BINARY_NAME: rexec
|
||||
jobs:
|
||||
release:
|
||||
name: release ${{ matrix.target }}
|
||||
build:
|
||||
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/rust-build.action@v1.4.3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
RUSTTARGET: ${{ matrix.target }}
|
||||
ARCHIVE_TYPES: ${{ matrix.archive }}
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build-musl
|
||||
uses: gmiam/rust-musl-action@master
|
||||
with:
|
||||
args: cargo build --target $BUILD_TARGET --release
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ env.BINARY_NAME }}
|
||||
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*
|
||||
|
Reference in New Issue
Block a user