uodating test case script #837
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: [temurin@17, amazon-corretto@17, zulu@17, microsoft@17] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build scala | |
run: | | |
cd ${{ github.workspace }} | |
curl -fL "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux-static.gz" | gzip -d > cs | |
chmod +x ./cs | |
./cs setup --yes | |
sbt publishModules | |
test-java-build-on-linux: | |
strategy: | |
matrix: | |
jdk: [temurin@17, amazon-corretto@17, zulu@17, microsoft@17] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Java | |
run: | | |
sudo apt-get install -y dos2unix | |
cd ${{ github.workspace }} | |
# for whatever reason, for the moment nothing seems to work except an extreme manual approach. | |
# this should be corrected later when misterious external errors stop happening | |
wget -c https://github.com/Jabba-Team/jabba/releases/download/0.13.0/jabba-0.13.0-linux-amd64 -O ./jabba-linux-amd64 | |
chmod +x jabba-linux-amd64 | |
./jabba-linux-amd64 install ${{ matrix.jdk }} -o /opt/jdk | |
export JAVA_HOME=/opt/jdk | |
export PATH=$PATH:$JAVA_HOME/bin | |
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, microsoft@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 --yes | |
sbt publishModules | |
test-java-build-on-windows: | |
strategy: | |
matrix: | |
jdk: [temurin@17, amazon-corretto@17, zulu@17, microsoft@17] | |
fail-fast: false | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Java | |
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 }} | |
.\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 }} |