build #1021
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 | |
# When the 'permissions' key is specified, unspecified permission scopes (e.g., | |
# actions, checks, etc.) are set to no access (none). | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
# Run daily (* is a special character in YAML, so quote the string) | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
inputs: | |
# When git-ref is empty, HEAD will be checked out. | |
git-ref: | |
description: Optional git ref (branch, tag, or full SHA) | |
required: false | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# When the ref is empty, HEAD will be checked out. | |
ref: ${{ github.event.inputs.git-ref }} | |
- name: Dependencies (macos) | |
if: startsWith(matrix.os, 'macos-') | |
run: | | |
brew install coreutils tree | |
echo "PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:${PATH}" >> "${GITHUB_ENV}" | |
- name: Tests | |
run: ./tests.sh |