Skip to content

Commit

Permalink
chore(build): Skip tests as part of building the binaries
Browse files Browse the repository at this point in the history
Setting up a macOS runner and a Windows runner that have a GUI is probably going to take ages.
  • Loading branch information
mthmulders committed May 22, 2023
1 parent 1977c76 commit 0d47907
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ jobs:
echo "TOOLCHAIN_DIR=$TOOLCHAIN_DIR" >> $GITHUB_OUTPUT
if: matrix.os == 'ubuntu-latest'

- name: Install xvfb for headless unit tests
run: sudo apt install xvfb
if: matrix.os == 'ubuntu-latest'

- name: Cache Maven packages
uses: actions/cache@v3
with:
Expand All @@ -82,14 +86,16 @@ jobs:

- name: Build static native image for Linux
run: |
PATH=${TOOLCHAIN_DIR}/bin:$PATH; mvn -B -Pnative package
PATH=${TOOLCHAIN_DIR}/bin:$PATH; xvfb-run mvn -B -Pnative package
env:
TOOLCHAIN_DIR: ${{ steps.prepare-musl.outputs.TOOLCHAIN_DIR }}
if: matrix.os == 'ubuntu-latest'

- name: Build static native image for Windows / macOS
run: |
mvn -B -Pnative package
# Yikes, skipTests?! Well, we run those tests on the Ubuntu runner, which should be enough.
# Setting up a macOS runner and a Windows runner that have a GUI is probably going to take ages.
mvn -B -Pnative package -DskipTests
if: matrix.os != 'ubuntu-latest'

- name: Create distribution
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ jobs:
echo "TOOLCHAIN_DIR=$TOOLCHAIN_DIR" >> $GITHUB_OUTPUT
if: matrix.os == 'ubuntu-latest'

- name: Install xvfb for headless unit tests
run: sudo apt install xvfb
if: matrix.os == 'ubuntu-latest'

- name: Cache Maven packages
uses: actions/cache@v3
with:
Expand All @@ -141,16 +145,16 @@ jobs:

- name: Build static native image for Linux
run: |
# Yikes, skipTests?! Well, we run those tests on the Ubuntu runner, which should be enough.
# Setting up a macOS runner and a Windows runner that have a GUI is probably going to take ages.
PATH=${TOOLCHAIN_DIR}/bin:$PATH; mvn -B -Pnative package -DskipTests
PATH=${TOOLCHAIN_DIR}/bin:$PATH; xvfb-run mvn -B -Pnative package
env:
TOOLCHAIN_DIR: ${{ steps.prepare-musl.outputs.TOOLCHAIN_DIR }}
if: matrix.os == 'ubuntu-latest'

- name: Build static native image for Windows / macOS
run: |
mvn -B -Pnative package
# Yikes, skipTests?! Well, we run those tests on the Ubuntu runner, which should be enough.
# Setting up a macOS runner and a Windows runner that have a GUI is probably going to take ages.
mvn -B -Pnative package -DskipTests
if: matrix.os != 'ubuntu-latest'

- name: Create distribution
Expand Down

0 comments on commit 0d47907

Please sign in to comment.