-
Notifications
You must be signed in to change notification settings - Fork 4
122 lines (119 loc) · 4.06 KB
/
test-build.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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
---
name: "Building IDeSyDe modules and executables"
on:
push:
branches:
- "master"
- "develop"
pull_request:
types: [opened, reopened]
concurrency:
group: test-build @ ${{ github.ref }}
cancel-in-progress: true
jobs:
test-scala-build-on-linux:
strategy:
matrix:
jdk_distributions: [temurin, corretto, zulu]
jdk_version: ["17", "19"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coursier/setup-action@v1
with:
jvm: "${{ matrix.jdk_distributions }}:${{ matrix.jdk_version }}"
apps: cs sbt bloop
- name: Build scala
run: |
cd ${{ github.workspace }}
sbt publishModules
test-java-build-on-linux:
strategy:
matrix:
jdk_distributions: [temurin, corretto, zulu]
jdk_version: ["17", "19"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: ${{ matrix.jdk_distributions }}
java-version: '${{ matrix.jdk_version }}'
- name: Build Java
run: |
sudo apt-get install -y dos2unix
cd ${{ github.workspace }}
dos2unix ./gradlew # make sure that gradlew is not with CRLF
./gradlew publishModules
test-rust-build-on-linux:
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, x86_64-pc-windows-gnu]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build rust
run: |
sudo apt-get update
sudo apt-get install -y curl bash build-essential libssl-dev pkg-config mingw-w64 musl-dev musl-tools
cd ${{ github.workspace }}
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y
source "$HOME/.cargo/env"
rustup target add ${{ matrix.target }}
cargo build --release --target ${{ matrix.target }}
test-scala-build-on-windows:
strategy:
matrix:
jdk: [temurin@17, amazon-corretto@17, zulu@17]
fail-fast: false
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build scala
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Expression (Invoke-WebRequest https://github.com/Jabba-Team/jabba/raw/main/install.ps1 -UseBasicParsing).Content
cd ${{ github.workspace }}
jabba install ${{ matrix.jdk }}
jabba alias default ${{ matrix.jdk }}
Invoke-WebRequest -Uri "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-win32.zip" -OutFile "cs-x86_64-pc-win32.zip"
Expand-Archive -Path "cs-x86_64-pc-win32.zip"
Rename-Item -Path "cs-x86_64-pc-win32.exe" -NewName "cs.exe"
Remove-Item -Path "cs-x86_64-pc-win32.zip"
.\cs setup --jvm 17 --yes
sbt publishModules
test-java-build-on-windows:
strategy:
matrix:
jdk_distributions: [temurin, corretto, zulu]
jdk_version: ["17", "19"]
fail-fast: false
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: ${{ matrix.jdk_distributions }}
java-version: '${{ matrix.jdk_version }}'
- name: Build Java
run: |
cd ${{ github.workspace }}
.\gradlew.bat publishModules
test-rust-build-on-windows:
strategy:
matrix:
target: [x86_64-pc-windows-gnu, x86_64-pc-windows-msvc]
fail-fast: false
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build rust
run: |
cd ${{ github.workspace }}
Invoke-WebRequest -Uri "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe" -OutFile "rustup-init.exe"
.\rustup-init.exe -y
rustup target add ${{ matrix.target }}
cargo build --release --target ${{ matrix.target }}