50 lines
1019 B
YAML
50 lines
1019 B
YAML
|
|
name: C/C++ CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
DEBUG: "1"
|
|
|
|
jobs:
|
|
build-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
cache: false
|
|
- name: install toml-test
|
|
run: go install github.com/toml-lang/toml-test/v2/cmd/toml-test@latest
|
|
- name: make clean all
|
|
run: make clean all
|
|
- name: make test
|
|
run: make test
|
|
- name: make install
|
|
run: make install prefix=./tmp
|
|
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.21' # or whatever version you need
|
|
cache: false
|
|
- name: install toml-test
|
|
run: go install github.com/toml-lang/toml-test/v2/cmd/toml-test@latest
|
|
- name: make clean all
|
|
run: make clean all
|
|
- name: make test
|
|
run: make test
|
|
- name: make install
|
|
run: make install prefix=./tmp
|
|
|