Skip to content

compile

compile #5

Workflow file for this run

name: Release
on:
push:
branches: ["compile-latest"]
jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
strategy:
matrix:
platform:
- release_for: Linux-x86_64-GNU
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
bin: harper-ls
name: harper-ls-x86_64-unknown-linux-gnu.tar.gz
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ matrix.platform.target }}
args: "--profile dev"
strip: false
- name: Package as archive
shell: bash
run: |
cd target/${{ matrix.platform.target }}/debug
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
7z a ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
else
tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
fi
cd -
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.bin }}-${{ matrix.platform.target }}
path: harper-ls-*