Skip to content

Commit

Permalink
test: gha
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 23, 2024
1 parent aa937a7 commit 77e9f88
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/baboon-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,28 @@ jobs:
os: ubuntu-latest
runs-on: [ ]
java-version: '23'
- target: linux-aarch64
os: self-hosted
runs-on: [ "ARM64" ]
preconfigured: true

- target: windows-amd64
os: windows-2022
runs-on: [ ]
java-version: '23'
notunix: true

- target: macos-aarch64-14
runs-on: [ ]
os: macos-14 # yes, this is aarch64
java-version: '23'
nix-impure: true
- target: macos-amd64-13
os: macos-13 # this is amd64
runs-on: [ ]
java-version: '23'
- target: linux-aarch64
os: self-hosted
runs-on: [ "ARM64" ]
preconfigured: true
nix-impure: true

name: ${{ matrix.target }}
runs-on:
- ${{ matrix.os }}
Expand Down Expand Up @@ -71,9 +76,12 @@ jobs:
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build NI (unix)
if: matrix.notunix != true
- name: Build NI (linux)
if: matrix.notunix != true && matrix.nix-impure != true
run: nix-shell --pure ./shell.nix --run "sbt GraalVMNativeImage/packageBin"
- name: Build NI (macos)
if: matrix.notunix != true && matrix.nix-impure == true
run: nix-shell --impure ./shell.nix --run "sbt GraalVMNativeImage/packageBin"
- name: Build NI (windows)
if: matrix.notunix == true
run: sbt GraalVMNativeImage/packageBin
Expand All @@ -82,11 +90,13 @@ jobs:
name: baboon-${{ matrix.target }}
path: |
target/graalvm-native-image/**
- name: Run test build (unix)
if: matrix.notunix != true
shell: bash
run: bash ./nixtest.sh
- name: Run test build (windows)
- name: Test (linux)
if: matrix.notunix != true && matrix.nix-impure != true
run: nix-shell --pure ./shell.nix --run ./test.sh
- name: Test (macos)
if: matrix.notunix != true && matrix.nix-impure == true
run: nix-shell --impure ./shell.nix --run ./test.sh
- name: Test (windows)
if: matrix.notunix == true
shell: bash
run: bash ./test.sh
Expand Down

0 comments on commit 77e9f88

Please sign in to comment.