Skip to content

Commit

Permalink
Add a distro matrix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsharp committed Oct 23, 2022
1 parent 04eaddb commit cde78b8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/windows-all-distros.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Windows All Distros

on:
workflow_dispatch:
push:

jobs:
build:
strategy:
fail-fast: false
matrix:
# Dont' work: microsoft, corretto
distro: [temurin, zulu, adopt, adopt-openj9, liberica]

runs-on: windows-latest

steps:

- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17.0.4'
distribution: ${{ matrix.distro }}

- name: Maven Settings
run: |
cp adoptium-font-crash/src/setup/windows/toolchain.xml $HOME/.m2/toolchains.xml
(Get-Content ~/.m2/toolchains.xml) -replace"<jdkHome>.*</jdkHome>", ("<jdkHome>"+[Environment]::GetEnvironmentVariable('JAVA_HOME')+"</jdkHome>") | Set-Content ~/.m2/toolchains.xml
- name: Build with Maven
run: cd adoptium-font-crash/ && mvn --batch-mode package

- name: Archive
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.distro }}
path: adoptium-font-crash/target/adoptium-font-crash-1.0-SNAPSHOT-distribution.zip
retention-days: 2

0 comments on commit cde78b8

Please sign in to comment.