From 90132ef7df26fcf84928bd9250306869a04abb36 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Wed, 2 Nov 2022 10:36:38 +0200 Subject: [PATCH] [GitHub Actions] Fix install xsltproc --- .github/actions/install-xsltproc/action.yml | 11 +++++++++++ .github/workflows/common.yml | 12 +++++------- 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 .github/actions/install-xsltproc/action.yml diff --git a/.github/actions/install-xsltproc/action.yml b/.github/actions/install-xsltproc/action.yml new file mode 100644 index 00000000..d650312f --- /dev/null +++ b/.github/actions/install-xsltproc/action.yml @@ -0,0 +1,11 @@ +name: 'Install xsltproc' +description: 'Install xsltproc' + +runs: + using: composite + steps: + - name: 'Install xsltproc' + shell: bash + run: | + sudo apt-get update -y + sudo apt-get install -q -y xsltproc diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 53973314..aac244ce 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -185,9 +185,7 @@ jobs: # components: 'native-image' # add when starting native builds. github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' - run: | - sudo apt-get update -y - sudo apt-get install -q -y xsltproc + uses: ./.github/actions/install-xsltproc - name: 'Action: build initial dependencies' shell: bash env: @@ -252,7 +250,7 @@ jobs: # components: 'native-image' # add when starting native builds. github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' - run: sudo apt-get install -q -y xsltproc + uses: ./.github/actions/install-xsltproc - name: 'Configure: Install Pack' uses: ./.github/actions/install-pack - name: 'Configure: Docker login' @@ -314,7 +312,7 @@ jobs: # components: 'native-image' # add when starting native builds. github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' - run: sudo apt-get install -q -y xsltproc + uses: ./.github/actions/install-xsltproc - name: 'Configure: Install Pack' uses: ./.github/actions/install-pack - name: 'Configure: Docker login' @@ -372,12 +370,12 @@ jobs: if: ${{ needs.parameters.outputs.jdk_build != '8' }} uses: graalvm/setup-graalvm@v1 with: -# version: '22.3' + version: 'latest' java-version: ${{ needs.parameters.outputs.jdk_build }} # components: 'native-image' # add when starting native builds. github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' - run: sudo apt-get install -q -y xsltproc + uses: ./.github/actions/install-xsltproc - name: 'Configure: Install Pack' uses: ./.github/actions/install-pack - name: 'Configure: Docker login'