Skip to content

release

release #83

Workflow file for this run

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 linux-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."