Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Merge pull request #6 from AkihiroSuda/dev #18

Merge pull request #6 from AkihiroSuda/dev

Merge pull request #6 from AkihiroSuda/dev #18

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- example/**
- README.md
branches:
- "main"
pull_request:
paths-ignore:
- example/**
- README.md
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for Objective-C files.
uses: jidicula/[email protected]
with:
clang-format-version: '13'
build:
needs: formatting-check
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os:
- macos-13 # Intel
- macos-14 # ARM
- macos-15 # ARM
go:
- '^1.22'
- '^1.23'
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: vet
run: go vet ./...
- name: Build Linux
run: make -C example/linux
- name: Build GUI Linux
run: make -C example/gui-linux
- name: Build macOS
run: make -C example/macOS
if: runner.arch == 'ARM64'
test:
needs: build
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
# Can't expand the matrix due to the flakiness of the CI infra
matrix:
os:
- macos-15-large # Intel
go:
- '^1.23'
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Download Linux kernel
run: make download_kernel
- name: Unit Test
run: make test
timeout-minutes: 10