[SOL] Alias mem syscalls to sol_mem variants (#3) #38
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: Build compiler for linux and mac | |
on: [pull_request, push, workflow_dispatch] | |
jobs: | |
build: | |
name: Build zig | |
runs-on: ubuntu-latest | |
timeout-minutes: 600 | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-linux-musl | |
- target: x86_64-macos-none | |
- target: x86_64-windows-gnu | |
- target: aarch64-linux-musl | |
- target: aarch64-macos-none | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build | |
run: ./build ${{ matrix.target }} baseline | |
shell: bash | |
- name: Create tarball | |
run: tar -C out -cjf zig-${{ matrix.target }}.tar.bz2 zig-${{ matrix.target }}-baseline | |
shell: bash | |
- name: Upload ${{ matrix.target }} tarball | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zig-${{ matrix.target }}.tar.bz2 | |
path: zig-${{ matrix.target }}.tar.bz2 | |
create_release: | |
name: Create Release | |
needs: build | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
steps: | |
- name: Download tarballs into zig-bootstrap-solana/ | |
uses: actions/download-artifact@v4 | |
with: | |
merge-multiple: true | |
- name: Create GH Release | |
uses: softprops/[email protected] | |
with: | |
fail_on_unmatched_files: true | |
files: zig-*.tar.bz2 |