@@ -7,8 +7,17 @@ permissions:
7
7
attestations : write
8
8
9
9
jobs :
10
- build-o64 :
11
- runs-on : [self-hosted, Windows, O64]
10
+ build :
11
+ strategy :
12
+ matrix :
13
+ include :
14
+ - arch : O64
15
+ binfolder : bin64
16
+ label : " 64 bit"
17
+ - arch : O32
18
+ binfolder : bin32
19
+ label : " 32 bit"
20
+ runs-on : self-hosted, Windows, ${{ matrix.arch }}
12
21
steps :
13
22
- name : " Checkout"
14
23
uses : actions/checkout@v4
@@ -17,47 +26,20 @@ jobs:
17
26
uses : AccessCodeLib/msaccess-vcs-build@main
18
27
with :
19
28
source-dir : " source"
20
- target-dir : " bin64 "
29
+ target-dir : " ${{ matrix.binfolder }} "
21
30
compile : " true"
22
31
app-config : " deployment/Application-Config.json"
23
32
timeout-minutes : 10
24
33
- name : " Upload Build Artifact"
25
34
uses : actions/upload-artifact@v4
26
35
id : " upload"
27
36
with :
28
- name : " Binary files (64 bit )"
29
- path : " ./bin64 /*"
37
+ name : " Binary files (${{ matrix.label }} )"
38
+ path : " ./${{ matrix.binfolder }} /*"
30
39
if-no-files-found : warn
31
40
- name : " Attestation"
32
41
uses : actions/attest-build-provenance@v2
33
42
with :
34
- subject-name : " Binary files (64 bit)"
35
- subject-digest : sha256:${{ steps.upload.outputs.artifact-digest }}
36
-
37
- build-o32 :
38
- runs-on : [self-hosted, Windows, O32]
39
- steps :
40
- - name : " Checkout"
41
- uses : actions/checkout@v4
42
- - name : " Build Access file (accdb/accde)"
43
- id : build_access_file
44
- uses : AccessCodeLib/msaccess-vcs-build@main
45
- with :
46
- source-dir : " source"
47
- target-dir : " bin32"
48
- compile : " true"
49
- app-config : " deployment/Application-Config.json"
50
- timeout-minutes : 10
51
- - name : " Upload Build Artifact"
52
- uses : actions/upload-artifact@v4
53
- id : " upload"
54
- with :
55
- name : " Binary files (32 bit)"
56
- path : " ./bin32/*"
57
- if-no-files-found : warn
58
- - name : " Attestation"
59
- uses : actions/attest-build-provenance@v2
60
- with :
61
- subject-name : " Binary files (32 bit)"
43
+ subject-name : " Binary files (${{ matrix.label }})"
62
44
subject-digest : sha256:${{ steps.upload.outputs.artifact-digest }}
63
45
0 commit comments