Skip to content

Test CI - 4

Test CI - 4 #15

Workflow file for this run

name: Build compiler for linux and mac
on: [pull_request, push, workflow_dispatch]
jobs:
build:
name: Build zig
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: x86_64-linux-gnu
os: ubuntu-latest
- target: aarch64-linux-gnu
os: ubuntu-latest
- target: x86_64-macos-none
os: macos-latest
- target: aarch64-macos-none
os: macos-latest
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install coreutils
run: |
brew update && brew install coreutils
if: matrix.os == 'macos-latest'
shell: bash
# - 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: Create test tarball
run: echo "test" > zig-${{ matrix.target }}.tar.bz2
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
uses: actions/download-artifact@v4
- name: Create GH Release
uses: softprops/[email protected]
with:
files: |
zig-x86_64-linux-gnu.tar.bz2
zig-aarch64-linux-gnu.tar.bz2
zig-x86_64-macos-none.tar.bz2
zig-aarch64-macos-none.tar.bz2