1 name: Build distributable bundles |
1 name: Build windows installer in Docker. |
2 |
|
3 # This overrides HG revision IDs in Makefile |
|
4 env: |
|
5 beremiz_revisionid: 9fb2ded4f1988440faf546488ee83373825330f4 |
|
6 matiec_revisionid: 2a25f4dbf4e2b1e017a3a583db7dede4771fe523 |
|
7 canfestival_revisionid: 12a05e422666c738d1312259703f80150c747cb5 |
|
8 |
2 |
9 on: |
3 on: |
10 push: |
4 workflow_dispatch: |
11 branches: [ default ] |
5 # push: |
|
6 # branches: [ default ] |
12 |
7 |
13 jobs: |
8 jobs: |
|
9 sources: |
|
10 uses: ./.github/workflow/prep_sources |
14 |
11 |
15 build: |
12 build: |
16 |
|
17 runs-on: ubuntu-latest |
13 runs-on: ubuntu-latest |
18 |
14 |
19 steps: |
15 steps: |
20 - uses: actions/checkout@v3 |
|
21 with: |
|
22 path: beremiz_public_dist |
|
23 |
|
24 # repositories are directly checked out wher Makerfile expect them |
|
25 - uses: actions/checkout@v3 |
|
26 with: |
|
27 repository: beremiz/beremiz |
|
28 ref: ${{ env.beremiz_revisionid }} |
|
29 path: build/sources/beremiz |
|
30 |
|
31 - uses: actions/checkout@v3 |
|
32 with: |
|
33 repository: beremiz/matiec |
|
34 ref: ${{ env.matiec_revisionid }} |
|
35 path: build/sources/matiec |
|
36 |
|
37 - uses: actions/checkout@v3 |
|
38 with: |
|
39 repository: beremiz/canfestival |
|
40 ref: ${{ env.canfestival_revisionid }} |
|
41 path: build/sources/canfestival |
|
42 |
|
43 - name: Touch expected Makfile targets to shortcut HG checkout |
|
44 run: | |
|
45 touch build/sources/beremiz_${{ env.beremiz_revisionid }} |
|
46 touch build/sources/matiec_${{ env.matiec_revisionid }} |
|
47 touch build/sources/canfestival_${{ env.canfestival_revisionid }} |
|
48 touch build/sources/beremiz_src |
|
49 touch build/sources/matiec_src |
|
50 touch build/sources/canfestival_src |
|
51 touch build/own_sources |
|
52 cat >> build/revisions.txt <<EOF |
|
53 beremiz_public_dist ${{ github.sha }} |
|
54 beremiz ${{ env.beremiz_revisionid }} |
|
55 matiec ${{ env.matiec_revisionid }} |
|
56 canfestival ${{ env.canfestival_revisionid }} |
|
57 EOF |
|
58 |
|
59 - name: Cache docker image |
16 - name: Cache docker image |
60 id: cache-docker |
17 id: cache-docker |
61 uses: actions/cache@v3 |
18 uses: actions/cache@v3 |
62 env: |
19 env: |
63 cache-name: cache-docker |
20 cache-name: cache-docker |
83 ./create_docker_container.sh ${{ github.workspace }}/build |
40 ./create_docker_container.sh ${{ github.workspace }}/build |
84 |
41 |
85 - name: Run build in docker |
42 - name: Run build in docker |
86 run: | |
43 run: | |
87 cd beremiz_public_dist |
44 cd beremiz_public_dist |
|
45 # override HG revision IDs in Makefile |
88 ./build_in_docker.sh \ |
46 ./build_in_docker.sh \ |
89 beremiz_revisionid=${{ env.beremiz_revisionid }} \ |
47 beremiz_revisionid=${{ needs.sources.outputs.beremiz_revisionid }} \ |
90 matiec_revisionid=${{ env.matiec_revisionid }} \ |
48 matiec_revisionid=${{ needs.sources.outputs.matiec_revisionid }} \ |
91 canfestival_revisionid=${{ env.canfestival_revisionid }} |
49 canfestival_revisionid=${{ needs.sources.outputs.canfestival_revisionid }} |
92 |
50 |
93 - name: Upload built artifact |
51 - name: Upload built artifact |
94 uses: actions/upload-artifact@v3 |
52 uses: actions/upload-artifact@v3 |
95 with: |
53 with: |
96 name: windows_bundles |
54 name: windows_bundles |