-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
73 lines (64 loc) · 1.77 KB
/
smoke.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
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
# These jobs are smoke tests for platforms where we don't rund full tests.
# They ensure that std_spec, compiler_spec and the compiler itself at least
# compile for the target with --cross-compile. But the binaries are not linked
# and executed. So this does not validate correct behaviour.
#
# The list of supported platforms is extracted from the lib_c bindings:
#
# ```terminal-session
# $ find src/lib_c -maxdepth 1 -mindepth 1 -type d -printf '%P\n' | sort
# aarch64-android
# aarch64-darwin
# aarch64-linux-gnu
# aarch64-linux-musl
# arm-linux-gnueabihf
# i386-linux-gnu
# i386-linux-musl
# wasm32-wasi
# x86_64-darwin
# x86_64-dragonfly
# x86_64-freebsd
# x86_64-linux-gnu
# x86_64-linux-musl
# x86_64-netbsd
# x86_64-openbsd
# x86_64-solaris
# x86_64-windows-msvc
# ```
#
# Platforms for which we currently run full tests are excluded from this workflow.
name: Smoke tests
on: [push, pull_request]
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
TRAVIS_OS_NAME: linux
ARCH: x86_64
ARCH_CMD: linux64
jobs:
smoke-test:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
max-parallel: 2
fail-fast: false
matrix:
target:
- aarch64-linux-android
- arm-linux-gnueabihf
- i386-linux-gnu
- i386-linux-musl
- x86_64-dragonfly
- x86_64-freebsd
- x86_64-netbsd
- x86_64-openbsd
- x86_64-solaris
steps:
- name: Download Crystal source
uses: actions/checkout@v4
- name: Build fresh compiler
run: bin/ci with_build_env make
- name: Run smoke test
run: bin/ci with_build_env make smoke_test target=${{ matrix.target }}