-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Github CI to run tests on Windows
Changes: - Windows fails to stop an application when running on DEV mode. Reported issue: quarkusio/quarkus#14647 - Windows disallows to delete folders when they are being used by the file explorer or the processes are about to be exited. This is why: 1. I'm ignoring these errors when the directory can't be deleted (it's not Quarkus issue) 2. I splitted the "s p a c e s" runs into there different folders for jvm, native and dev mode.
- Loading branch information
Showing
7 changed files
with
178 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ on: | |
schedule: | ||
- cron: '0 23 * * *' | ||
jobs: | ||
build-released-jvm: | ||
name: JVM build - released Quarkus | ||
linux-build-released-jvm: | ||
name: Linux - JVM build - released Quarkus | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -35,8 +35,8 @@ jobs: | |
with: | ||
name: ci-artifacts | ||
path: artifacts-jvm${{ matrix.java }}.zip | ||
build-released-native: | ||
name: Native build - released Quarkus | ||
linux-build-released-native: | ||
name: Linux - Native build - released Quarkus | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -96,4 +96,90 @@ jobs: | |
if: failure() | ||
with: | ||
name: ci-artifacts | ||
path: artifacts-code-start${{ matrix.java }}.zip | ||
path: artifacts-code-start${{ matrix.java }}.zip | ||
windows-build-released-jvm: | ||
name: Windows - JVM build - released Quarkus | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
java: [ 11 ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Install JDK {{ matrix.java }} | ||
uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Build with Maven | ||
shell: bash | ||
run: | | ||
mvn -V -B -s .github/mvn-settings.xml clean verify -DexcludeTags='product,native,codequarkus' | ||
- name: Zip Artifacts | ||
if: failure() | ||
shell: bash | ||
run: | | ||
# Disambiguate windows find from cygwin find | ||
/usr/bin/find . -name '*-reports' -o -name 'archived-logs' -type d | tar -czf artifacts-windows-jvm${{ matrix.java }}.tar -T - | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: ci-artifacts | ||
path: artifacts-windows-jvm${{ matrix.java }}.tar | ||
windows-build-released-native: | ||
name: Windows - Native build - released Quarkus | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
java: [ 11 ] | ||
# Version 21.1 is not working due to https://github.com/quarkusio/quarkus/issues/14904 | ||
graalvm-version: [ "21.0.0.2.java11" ] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Install JDK {{ matrix.java }} | ||
uses: joschi/setup-jdk@e87a7cec853d2dd7066adf837fe12bf0f3d45e52 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
- name: Install cl.exe | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- uses: microsoft/setup-msbuild@v1 | ||
- name: Setup GraalVM | ||
id: setup-graalvm | ||
uses: DeLaGuardo/setup-graalvm@master | ||
with: | ||
graalvm-version: ${{ matrix.graalvm-version }} | ||
java: java${{ matrix.graalvm-version }} | ||
- name: Install native-image component | ||
run: | | ||
gu.cmd install native-image | ||
- name: Configure Pagefile | ||
# Increased the page-file size due to memory-consumption of native-image command | ||
# For details see https://github.com/actions/virtual-environments/issues/785 | ||
uses: al-cheb/[email protected] | ||
- name: Build with Maven | ||
run: | | ||
mvn -V -B -s .github/mvn-settings.xml clean verify -DexcludeTags="product,codequarkus" -Dquarkus.native.native-image-xmx=6g | ||
shell: cmd | ||
- name: Zip Artifacts | ||
if: failure() | ||
shell: bash | ||
run: | | ||
# Disambiguate windows find from cygwin find | ||
/usr/bin/find . -name '*-reports' -o -name 'archived-logs' -type d | tar -czf artifacts-windows-native${{ matrix.java }}.tar -T - | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: ci-artifacts | ||
path: artifacts-windows-native${{ matrix.java }}.tar |
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
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
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
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
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
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