hoolamike release v0.8.4 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests and release | |
on: [push] | |
env: | |
RUST_BACKTRACE: 1 | |
jobs: | |
release: | |
name: Release - ${{ matrix.platform.os-name }} with rust ${{ matrix.toolchain }} | |
strategy: | |
# fail-fast: false | |
matrix: | |
platform: | |
# - os-name: FreeBSD-x86_64 | |
# runs-on: ubuntu-20.04 | |
# target: x86_64-unknown-freebsd | |
# skip_tests: true | |
- os-name: Linux-x86_64 | |
runs-on: ubuntu-20.04 | |
target: x86_64-unknown-linux-gnu | |
# - os-name: Linux-aarch64 | |
# runs-on: ubuntu-20.04 | |
# target: aarch64-unknown-linux-gnu | |
# - os-name: Linux-riscv64 | |
# runs-on: ubuntu-20.04 | |
# target: riscv64gc-unknown-linux-gnu | |
# - os-name: Windows-x86_64 | |
# runs-on: windows-latest | |
# target: x86_64-pc-windows-msvc | |
# - os-name: macOS-x86_64 | |
# runs-on: macOS-latest | |
# target: x86_64-apple-darwin | |
# more targets here ... | |
runs-on: ${{ matrix.platform.runs-on }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install libarchive | |
run: sudo apt-get update --yes && sudo apt-get install --yes pkg-config openssl libssl-dev libarchive-dev | |
- name: Build binary | |
uses: houseabsolute/actions-rust-cross@v0 | |
with: | |
command: "build" | |
target: ${{ matrix.platform.target }} | |
toolchain: "nightly" | |
args: "--locked --release --package hoolamike" | |
- name: Publish artifacts and release | |
uses: houseabsolute/actions-rust-release@v0 | |
with: | |
executable-name: hoolamike | |
target: ${{ matrix.platform.target }} | |
changes-file: "CHANGELOG.md" | |
- name: Publish GitHub release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
files: "hoolamike" | |
body_path: CHANGELOG.md | |
if: startsWith( github.ref, 'refs/tags/v' ) |