Skip to content

v0.3.0

v0.3.0 #12

Workflow file for this run

name: Release
on:
release:
types: created
env:
CARGO_TERM_COLOR: always
jobs:
release:
name: ${{ matrix.platform.target }}
strategy:
fail-fast: false
matrix:
platform:
- target: x86_64-unknown-linux-gnu
os: ubuntu-20.04
bin: rgl
- target: aarch64-apple-darwin
os: macOS-latest
bin: rgl
- target: x86_64-apple-darwin
os: macOS-latest
bin: rgl
- target: x86_64-pc-windows-msvc
os: windows-latest
bin: rgl.exe
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: "build"
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
- name: Package as archive
shell: bash
run: |
cd target/${{ matrix.platform.target }}/release
7z a ../../../rgl-${{ matrix.platform.target }}.zip ${{ matrix.platform.bin }}
- name: Generate SHA-256
run: shasum -a 256 ${{ matrix.platform.name }}
if: matrix.platform.os == 'macOS-latest'
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
with:
files: "rgl-*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}