-
Notifications
You must be signed in to change notification settings - Fork 17
50 lines (40 loc) · 986 Bytes
/
macos.yml
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
43
44
45
46
47
48
49
name: macos
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/macos.yml'
- 'tests/**'
- '**/*.lua'
pull_request:
paths:
- '.github/workflows/macos.yml'
- 'tests/**'
- '**/*.lua'
jobs:
macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: checkout premake5
uses: actions/checkout@v3
with:
repository: premake/premake-core
path: .bins/premake-build
- name: Build premake5
run: |
cd .bins/premake-build
make -f Bootstrap.mak osx CONFIG=release
cp bin/release/premake5 ../
cd ..
rm -Rf premake-build
- name: install ninja
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Versions
run: |
python --version
.bins/premake5 --version
ninja --version
- name: test projects
run: cd tests && PATH=$PATH:`pwd`/../.bins python run_tests.py