-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (91 loc) · 2.77 KB
/
test.yml
File metadata and controls
99 lines (91 loc) · 2.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Test Action
on:
pull_request:
jobs:
test:
name: Test ${{ matrix.version }} on ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- os: Linux
arch: x86_64
runner: ubuntu-latest
version: alpha3-rolling
- os: Linux
arch: x86_64
runner: ubuntu-latest
version: alpha4-rolling
- os: Linux
arch: x86_64
runner: ubuntu-latest
version: nightly
- os: Linux
arch: x86_64
runner: ubuntu-latest
version: nightly-new-compiler
- os: Linux
arch: arm64
runner: ubuntu-24.04-arm
version: alpha3-rolling
- os: Linux
arch: arm64
runner: ubuntu-24.04-arm
version: alpha4-rolling
- os: Linux
arch: arm64
runner: ubuntu-24.04-arm
version: nightly
- os: Linux
arch: arm64
runner: ubuntu-24.04-arm
version: nightly-new-compiler
- os: macOS
arch: x86_64
runner: macos-15-intel
version: alpha3-rolling
- os: macOS
arch: x86_64
runner: macos-15-intel
version: alpha4-rolling
- os: macOS
arch: x86_64
runner: macos-15-intel
version: nightly
- os: macOS
arch: x86_64
runner: macos-15-intel
version: nightly-new-compiler
- os: macOS
arch: arm64
runner: macos-latest
version: alpha3-rolling
- os: macOS
arch: arm64
runner: macos-latest
version: alpha4-rolling
- os: macOS
arch: arm64
runner: macos-latest
version: nightly
- os: macOS
arch: arm64
runner: macos-latest
version: nightly-new-compiler
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Roc
uses: ./
with:
version: ${{ matrix.version }}
- name: Check Roc version
run: roc version
- name: Download HelloWorld example (old compiler)
if: matrix.version != 'nightly-new-compiler'
run: curl -fsSL -o main.roc https://raw.githubusercontent.com/roc-lang/examples/main/examples/HelloWorld/main.roc
- name: Download HelloWorld example (new compiler)
if: matrix.version == 'nightly-new-compiler'
run: curl -fsSL -o main.roc https://raw.githubusercontent.com/roc-lang/nightlies/main/hello_world_test.roc
- name: Run HelloWorld example
run: roc main.roc