From 2e418614419c51371b35dce214936e17010887fe Mon Sep 17 00:00:00 2001 From: Daniel Slapman Date: Sat, 3 Feb 2024 18:42:00 +0100 Subject: [PATCH] Create a separate stage for native image --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82afd29a..24e138d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -214,10 +214,15 @@ jobs: ref: ${{ github.ref }} head_ref: ${{ github.head_ref }} - - name: Compile and test + - name Lint and Test + run: | + cd backend + sbt "project mockingbird-native;clean;fixCheck;test" + + - name: Create native image and stage image contents run: | cd backend - sbt "project mockingbird-native;clean;fixCheck;test;GraalVMNativeImage / packageBin;Docker / stage;" + sbt "project mockingbird-native;GraalVMNativeImage / packageBin;Docker / stage;" - name: Build docker image for test uses: docker/build-push-action@v3