Skip to content

OSX Build

OSX Build #9

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
publish:
name: "Publish for ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
strategy:
matrix:
include:
- name: linux
os: ubuntu-latest
artifact_name: target/x86_64-unknown-linux-musl/release/debug-tui
asset_name: debug-tui-linux
target: "x86_64-unknown-linux-musl"
- name: macos
os: macos-latest
artifact_name: target/x86_64-apple-darwin/release/debug-tui
asset_name: debug-tui-apple-darwin
target: "x86_64-apple-darwin"
steps:
- uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.target }}
- name: Install MUSL
if: matrix.target == 'x86_64-unknown-linux-musl'
run: sudo apt install musl-tools
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}
- name: List
run: find -name debug-tui
- name: Rename
run: mv ${{ matrix.artifact_name }} ${{ matrix.asset_name }}
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: ${{ matrix.asset_name }}