-
-
Notifications
You must be signed in to change notification settings - Fork 116
45 lines (36 loc) · 1.06 KB
/
mac-ci.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
name: macOS CI build
on:
push:
branches:
- "*"
tags:
- "!*"
jobs:
build:
name: macOS CI build
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Check Perl version
run: perl -V > perl-version
- name: Cache Dependencies
id: cache-dependencies
uses: actions/cache@v2
with:
path: mac-dependencies
key: ${{ runner.os }}-${{ runner.arch }}-${{ github.workspace }}/mac-dependencies-${{ hashFiles('tools/mac-build-dependencies.sh', 'perl-version') }}
- name: Refresh Dependencies
run: . tools/mac-build-dependencies.sh
- name: Build image
run: |
. tools/mac-build-dependencies.sh
make -f Makefile.osx -j$(sysctl -n hw.logicalcpu) DEBUG=1 REHex.dmg
- name: Run tests
run: |
. tools/mac-build-dependencies.sh
make -f Makefile.osx -j$(sysctl -n hw.logicalcpu) DEBUG=1 check
- uses: actions/upload-artifact@v4
with:
name: rehex-mac.dmg
path: REHex.dmg
if-no-files-found: error