-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
37 lines (30 loc) · 909 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
name: macOS CI
on:
push:
pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- "**:**"
env:
SPEC_SPLIT_DOTS: 160
CI_NIX_SHELL: true
jobs:
test_macos:
runs-on: macos-latest
steps:
- name: Download Crystal source
uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
- uses: cachix/cachix-action@v8
with:
name: crystal-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Prepare System
run: bin/ci prepare_system
- name: Prepare Build
run: bin/ci prepare_build
- name: Test
run: bin/ci build