release #84
Workflow file for this run
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: release | |
on: | |
push: | |
tags: | |
- "v*" | |
env: | |
OPENSSL_LIB_DIR: /usr/lib/x86_64-linux-gnu | |
OPENSSL_INCLUDE_DIR: /usr/include/openssl | |
OPENSSL_STATIC: 1 | |
jobs: | |
release: | |
name: Publish for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
artifact_name: x86_64-unknown-linux-musl.tar.gz | |
asset_name: release-x86_64-unknown-linux-musl.tar.gz | |
target: x86_64-unknown-linux-musl | |
- os: macos-latest | |
artifact_name: aarch64-apple-darwin.tar.gz | |
asset_name: release-aarch64-apple-darwin.tar | |
target: aarch64-apple-darwin | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install musl | |
run: | | |
if [ "${{ matrix.target }}" == "x86_64-unknown-linux-musl" ] | |
then | |
sudo apt update | |
sudo apt install -y musl-tools musl-dev libssl-dev pkg-config openssl | |
fi | |
- name: Build in ${{ matrix.target }} | |
run: ./scripts/release_tar.sh ${{ matrix.target }} | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/${{ matrix.artifact_name }} | |
asset_name: ${{ matrix.asset_name }} | |
tag: ${{ github.ref }} | |
overwrite: true | |
body: "Cairo compiler." |