-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,41 +15,52 @@ jobs: | |
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Run clang-format style check for Objective-C files. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '13' | ||
build: | ||
runs-on: | ||
- macos-14 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: vet | ||
run: go vet ./... | ||
- name: Build Linux | ||
run: make -C example/linux | ||
- name: Build GUI Linux | ||
run: make -C example/gui-linux | ||
test: | ||
needs: formatting-check | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 6 | ||
timeout-minutes: 7 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-11 | ||
- macos-12 | ||
- macos-13 | ||
- macos-14 | ||
# - macos-14 # we cannot use this in testing. see: https://github.com/Code-Hex/vz/issues/109#issuecomment-1962815058 | ||
go: | ||
- '^1.21' | ||
- '^1.22' | ||
- '1.21' | ||
- '1.22' | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: vet | ||
run: go vet ./... | ||
- name: Download Linux kernel | ||
run: make download_kernel | ||
- name: Unit Test | ||
run: make test | ||
timeout-minutes: 3 | ||
- name: Build Linux | ||
run: make -C example/linux | ||
- name: Build GUI Linux | ||
run: make -C example/gui-linux | ||
timeout-minutes: 5 | ||
|