Skip to content

Final changes to the build action #5

Final changes to the build action

Final changes to the build action #5

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- runs_on: "windows-latest"
target: "windows-amd64"
- runs_on: "ubuntu-latest"
target: "ubuntu-amd64"
- runs_on: "macos-latest"
target: "macos-aarch64"
runs-on: ${{ matrix.runs_on }}
steps:
- name: Checkout Repository
uses: actions/checkout@v7
- name: Setup Windows MinGW Environment
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
make
mingw-w64-x86_64-gcc
- name: Build (Windows)
if: runner.os == 'Windows'
shell: msys2 {0}
run: bash build.sh
- name: Build (Unix)
if: runner.os != 'Windows'
shell: bash
run: bash build.sh
- name: Upload Artifact
uses: actions/upload-artifact@v7
with:
name: "libbacktrace-${{ matrix.target }}"
path: "build/install/lib/libbacktrace.a"