Core Lib Documentation: Clone
module (#6665)
#103
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*" | |
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-get install -y musl-tools | |
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." |