-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
48 lines (39 loc) · 1.13 KB
/
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
name: macOS CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
SPEC_SPLIT_DOTS: 160
CI_NIX_SHELL: true
jobs:
darwin-test:
runs-on: ${{ matrix.runs-on }}
name: ${{ matrix.arch }}
strategy:
matrix:
include:
- runs-on: macos-13
arch: x86_64-darwin
- runs-on: macos-14
arch: aarch64-darwin
steps:
- name: Download Crystal source
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
install_url: https://releases.nixos.org/nix/nix-2.9.2/install
extra_nix_config: |
experimental-features = nix-command
- uses: cachix/cachix-action@v15
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
- name: Test interpreter
run: bin/ci with_build_env 'make interpreter_spec'