Skip to content

Commit 9b3bc6b

Browse files
committed
Adapt the CI workflow to test the msi
1 parent 83a5951 commit 9b3bc6b

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

Diff for: .github/workflows/build-msi.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1+
###################################################################################################
2+
### THIS IS A REUSABLE WORKFLOW TO BUILD SCALA MSI ###
3+
### HOW TO USE: ###
4+
### - THE RELEASE WORKFLOW SHOULD CALL THIS WORKFLOW ###
5+
### - IT WILL UPLOAD TO GITHUB THE MSI FILE FOR SCALA UNDER THE 'scala.msi' NAME ###
6+
### ###
7+
### NOTE: ###
8+
### - WE SHOULD BUILD SCALA USING JAVA 8 ###
9+
###################################################################################################
110

211
name: Build the MSI Package
312

413
on:
5-
pull_request:
14+
workflow_call:
15+
16+
env:
17+
# NECESSARY FLAG TO CORRECTLY CONFIGURE THE VERSION FOR SCALA
18+
RELEASEBUILD: yes
619

720
jobs:
821
build:
922
runs-on: windows-latest
10-
env:
11-
RELEASEBUILD: yes
1223
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v3
15-
16-
- uses: actions/setup-java@v3
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-java@v4
1726
with:
1827
distribution: 'adopt'
1928
java-version: '8'

Diff for: .github/workflows/ci.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -1008,3 +1008,8 @@ jobs:
10081008
WORKFLOW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
10091009
with:
10101010
filename: .github/workflows/issue_nightly_failed.md
1011+
1012+
build-msi-package:
1013+
uses: ./.github/workflows/build-msi.yml
1014+
if : github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_msi]')
1015+
# TODO: ADD A JOB THAT DEPENDS ON THIS TO TEST THE MSI

0 commit comments

Comments
 (0)