Skip to content

Commit

Permalink
Adapt the CI workflow to test the msi
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed Jul 2, 2024
1 parent 073ef51 commit 96d05e2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build-msi.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 96d05e2

Please sign in to comment.