-
Notifications
You must be signed in to change notification settings - Fork 15
83 lines (67 loc) · 2.74 KB
/
linux.yml
File metadata and controls
83 lines (67 loc) · 2.74 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
# This file is part of the Fuzion language implementation.
#
# The Fuzion language implementation is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, version 3 of the License.
#
# The Fuzion language implementation is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License along with The
# Fuzion language implementation. If not, see <https://www.gnu.org/licenses/>.
# -----------------------------------------------------------------------
#
# Tokiwa Software GmbH, Germany
#
# GitHub Actions workflow to build and test Fuzion on Ubuntu.
#
# -----------------------------------------------------------------------
name: run tests on linux
# https://lobste.rs/s/ppjtie/simple_trick_save_environment_money_when
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request: {}
env:
PRECONDITIONS: true
POSTCONDITIONS: true
FUZION_REPRODUCIBLE_BUILD: true
dev_flang_tools_serializeFUIR: true
dev_flang_fuir_analysis_dfa_DFA_MAX_ITERATIONS: 50
INFLUXDB_TOKEN: ${{ secrets.INFLUXDB_TOKEN }}
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install openjdk-25-jdk-headless sqlite3 libgc1 libgc-dev libclang1 libclang-dev libwolfssl-dev libsodium23 libsodium-dev
echo "JAVA_HOME=/usr/lib/jvm/java-25-openjdk-amd64" >> $GITHUB_ENV
echo "/usr/lib/jvm/java-25-openjdk-amd64/bin" >> $GITHUB_PATH
- name: link libclang
run: |
export CLANG_MAJOR_VERSION=$(clang --version | head -n 1 | awk '{print $4}' | cut -d. -f1)
test -f /usr/lib/llvm-$CLANG_MAJOR_VERSION/lib/libclang.so && sudo ln -s /usr/lib/llvm-$CLANG_MAJOR_VERSION/lib/libclang.so /usr/lib/
- name: build java code
run: make -j$(nproc) javac
- name: build (no java modules)
run: make -j$(nproc) no-java
- name: build fz_cmd and dependencies
run: make build/modules/fz_cmd.fum
- name: build fuzion.jar
run: make build/fuzion.jar
- name: run tests
run: make run_tests
- name: check that interpreter works in general
run: make int -C build/tests/hello