-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.17 KB
/
test.yml
File metadata and controls
42 lines (42 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# SPDX-FileCopyrightText: 2025-2026 David Rabkin
# SPDX-License-Identifier: 0BSD
# This workflow has limitations -- Ubuntu lacks a redo package.
---
name: test
'on': [pull_request, push]
env:
BASE_REL: 0.9.20260404
BASE_SRC: https://github.com/rdavid/shellbase/archive/refs/tags/v0.9.20260404.tar.gz # yamllint disable-line
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-14
- macos-15
- macos-15-intel
- ubuntu-22.04
- ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install gcc --yes
g++ -std=c++03 -Wall -Werror -pedantic -o app main.cpp
./app
- if: runner.os == 'macOS'
run: |
brew upgrade
brew install gcc goredo
curl --location --silent "$BASE_SRC" |
tar \
--directory /usr/local/bin \
--extract \
--gzip \
--strip-components=2 \
shellbase-"$BASE_REL"/lib/base.sh
redo -xx