forked from crystal-lang/crystal
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 881 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
name: macOS CI
on: [push, pull_request]
env:
SPEC_SPLIT_DOTS: 160
CI_NIX_SHELL: true
jobs:
x86_64-darwin-test:
runs-on: macos-11
steps:
- name: Download Crystal source
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
install_url: https://releases.nixos.org/nix/nix-2.9.2/install
extra_nix_config: |
experimental-features = nix-command
- uses: cachix/cachix-action@v12
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 'bin/crystal spec --order=random spec/compiler/interpreter_spec.cr'