Setting version to 0.0.28-SNAPSHOT #147
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: Baboon Build | |
on: | |
push: | |
branches: [ "main" ] | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-2022 ] | |
graalvm-version: [ '22.3.1' ] | |
java-version: [ '17' ] | |
include: | |
- os: ubuntu-latest | |
executable-suffix: '' | |
native-build-args: --verbose -J-Xmx10g -march=compatibility | |
- os: macos-latest | |
executable-suffix: '' | |
native-build-args: --verbose -J-Xmx13g -march=compatibility | |
- os: windows-2022 | |
executable-suffix: '.exe' | |
# e2e is disabled due to unstable docker step | |
#e2e: false | |
native-build-args: --verbose -J-Xmx10g -march=compatibility | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up GraalVM (Java ${{ matrix.java-version }}) | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
version: '${{ matrix.graalvm-version }}' | |
java-version: '${{ matrix.java-version }}' | |
distribution: 'graalvm-community' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
cache: 'sbt' | |
native-image-job-reports: true | |
- name: Run tests | |
run: sbt test | |
- name: Build NI | |
run: sbt GraalVMNativeImage/packageBin | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: native-image-${{ matrix.os }} | |
path: | | |
target/graalvm-native-image/** | |
- name: Run test build | |
shell: bash | |
run: | | |
target/graalvm-native-image/baboon \ | |
--model-dir ./src/test/resources/baboon/ \ | |
--output ./test/cs-stub/ConversionsTest/Generated | |
cd ./test/cs-stub | |
dotnet build | |
prepare-release: | |
runs-on: ubuntu-latest | |
needs: [ build ] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: native-image-ubuntu-latest | |
path: tmp/baboon-linux-x64 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: native-image-macos-latest | |
path: tmp/baboon-mac-x64 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: native-image-windows-2022 | |
path: tmp/baboon-windows-x64 | |
- name: Prepare layout | |
run: | | |
pushd . | |
cd tmp/ | |
zip -r9 baboon-linux-x64.zip ./baboon-linux-x64/ | |
zip -r9 baboon-mac-x64.zip ./baboon-mac-x64/ | |
zip -r9 baboon-windows-x64.zip ./baboon-windows-x64/ | |
popd | |
mkdir dist | |
mv ./tmp/baboon-linux-x64/baboon dist/baboon-linux-x64 | |
mv ./tmp/baboon-mac-x64/baboon dist/baboon-mac-x64 | |
mv ./tmp/baboon-windows-x64/baboon.exe dist/baboon-x64.exe | |
mkdir dist-zip | |
mv ./tmp/baboon-linux-x64.zip ./dist-zip/ | |
mv ./tmp/baboon-mac-x64.zip ./dist-zip/ | |
mv ./tmp/baboon-windows-x64.zip ./dist-zip/ | |
- uses: softprops/action-gh-release@v1 | |
id: create-release | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dist/** | |
dist-zip/** |