diff --git a/.github/workflows/build-msi.yml b/.github/workflows/build-msi.yml index 548cc4b9baa8..8e3ac5eeb78b 100644 --- a/.github/workflows/build-msi.yml +++ b/.github/workflows/build-msi.yml @@ -1,19 +1,28 @@ +################################################################################################### +### THIS IS A REUSABLE WORKFLOW TO BUILD SCALA MSI ### +### HOW TO USE: ### +### - THE RELEASE WORKFLOW SHOULD CALL THIS WORKFLOW ### +### - IT WILL UPLOAD TO GITHUB THE MSI FILE FOR SCALA UNDER THE 'scala.msi' NAME ### +### ### +### NOTE: ### +### - WE SHOULD BUILD SCALA USING JAVA 8 ### +################################################################################################### name: Build the MSI Package on: - pull_request: + workflow_call: + +env: + # NECESSARY FLAG TO CORRECTLY CONFIGURE THE VERSION FOR SCALA + RELEASEBUILD: yes jobs: build: runs-on: windows-latest - env: - RELEASEBUILD: yes steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: '8' diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2747830fb7d6..8081d64ccf48 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1008,3 +1008,8 @@ jobs: WORKFLOW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} with: filename: .github/workflows/issue_nightly_failed.md + + build-msi-package: + uses: ./.github/workflows/build-msi.yml + if : github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_msi]') + # TODO: ADD A JOB THAT DEPENDS ON THIS TO TEST THE MSI