-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 935 Bytes
/
build.yml
File metadata and controls
36 lines (34 loc) · 935 Bytes
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
name: Build Check
on:
push:
branches:
- master
tags-ignore:
- '**'
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository (with submodules)
uses: actions/checkout@v6
with:
submodules: recursive
- name: Select latest Xcode (Swift 6.2+)
run: |
LATEST_XCODE=$(ls -d /Applications/Xcode*.app | sort -V | tail -1)
echo "Selecting $LATEST_XCODE"
sudo xcode-select -s "$LATEST_XCODE"
swift --version
- name: Install dependencies
run: brew install cmake libomp rust
- name: Set up Ruby (for xcpretty)
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
- name: Install xcpretty
run: gem install xcpretty
- name: Make run.sh executable
run: chmod +x ./run.sh
- name: Build with run.sh
run: ./run.sh build