Skip to content

Commit 6677bc5

Browse files
committed
o64+o32 with strategy.matrix
1 parent 345a9be commit 6677bc5

File tree

1 file changed

+15
-33
lines changed

1 file changed

+15
-33
lines changed

.github/workflows/Build-self-hosted-O64-O32.yml

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@ permissions:
77
attestations: write
88

99
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 }}
1221
steps:
1322
- name: "Checkout"
1423
uses: actions/checkout@v4
@@ -17,47 +26,20 @@ jobs:
1726
uses: AccessCodeLib/msaccess-vcs-build@main
1827
with:
1928
source-dir: "source"
20-
target-dir: "bin64"
29+
target-dir: "${{ matrix.binfolder }}"
2130
compile: "true"
2231
app-config: "deployment/Application-Config.json"
2332
timeout-minutes: 10
2433
- name: "Upload Build Artifact"
2534
uses: actions/upload-artifact@v4
2635
id: "upload"
2736
with:
28-
name: "Binary files (64 bit)"
29-
path: "./bin64/*"
37+
name: "Binary files (${{ matrix.label }})"
38+
path: "./${{ matrix.binfolder }}/*"
3039
if-no-files-found: warn
3140
- name: "Attestation"
3241
uses: actions/attest-build-provenance@v2
3342
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 }})"
6244
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}
6345

0 commit comments

Comments
 (0)