Passing tests #1046
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} |