Automatically create and use system-*
flags in gentoo
template
#38
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
# SPDX-FileCopyrightText: 2024 Eric Joldasov | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Zig | |
on: | |
merge_group: | |
push: | |
branches: "**" | |
paths-ignore: | |
- "LICENSE/**" | |
- "README.md" | |
- ".gitignore" | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- "LICENSE/**" | |
- "README.md" | |
- ".gitignore" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, windows-2022, macos-15] | |
name: Build for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout last commit | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
persist-credentials: false | |
- name: Setup Zig nightly | |
uses: mlugg/setup-zig@a67e68dc5c8281d9608136d3d7ca1b282213e4ac # v1 | |
with: | |
version: master | |
- run: zig build |