-
Notifications
You must be signed in to change notification settings - Fork 42
53 lines (44 loc) · 1.31 KB
/
ci.yml
File metadata and controls
53 lines (44 loc) · 1.31 KB
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
50
51
52
53
name: CI
on:
pull_request:
workflow_dispatch:
# this cancels workflows currently in progress if you start a new one
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Do not add permissions here! Configure them at the job level!
permissions:
contents: read
jobs:
build-and-test:
name: test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-15 # Apple Silicon
- macos-15-intel # Intel Mac
- ubuntu-22.04 # Linux x86_64
- ubuntu-24.04-arm # Linux ARM64
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Zig
uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f # ratchet:mlugg/setup-zig@v2.0.5
with:
version: 0.15.2
- name: Install expect (Ubuntu)
if: startsWith(matrix.os, 'ubuntu-')
run: sudo apt-get install -y expect
- name: Install expect (macOS)
if: startsWith(matrix.os, 'macos-')
run: brew install expect
- name: Run all tests
uses: roc-lang/roc/.github/actions/flaky-retry@main
with:
command: ./ci/all_tests.sh
error_string_contains: "error: unable"