55 types : [published]
66
77env :
8+ SWIFT_VERSION : ${{ github.event.release.tag_name }}
89 SWIFT_TAG : swift-${{ github.event.release.tag_name }}-RELEASE
9- SWIFT_WORKSPACE_CACHE : swift-${{ github.event.release.tag_name }}-workspace
10- SWIFT_BUILDER_TAG : ${{ github.event.release.tag_name }}-gh-runner
10+ SWIFT_WORKSPACE_CACHE : swift-workspace
1111
1212jobs :
1313 fetch-sources :
@@ -16,77 +16,45 @@ jobs:
1616 steps :
1717 - uses : actions/checkout@v4
1818 - uses : ./.github/actions/checkout-swift
19- name : " Restore or Checkout: ${{ env.SWIFT_TAG }}"
19+ name : " Restore or Checkout ${{ env.SWIFT_VERSION }}"
2020 with :
2121 swift-tag : ${{ env.SWIFT_TAG }}
2222 swift-workspace-cache : ${{ env.SWIFT_WORKSPACE_CACHE }}
2323
24- debian-bullseye :
25- name : Build for Debian Bullseye
24+ build-for-distribution :
25+ strategy :
26+ matrix :
27+ distribution : [
28+ " debian-bullseye" ,
29+ " debian-bookworm" ,
30+ " ubuntu-focal" ,
31+ " ubuntu-jammy" ,
32+ " ubuntu-noble"
33+ ]
34+ name : Build Swift
2635 runs-on : ubuntu-latest
2736 needs : [fetch-sources]
2837 steps :
2938 - uses : actions/checkout@v4
39+ - name : Generate Builder Container
40+ shell : bash
41+ run : |
42+ source ./swift-builder/swift-builder-common
43+ ./swift-builder/build-container.sh
3044 - uses : ./.github/actions/build-for-distribution
31- name : " Build & Publish Swift: ${{ env.SWIFT_TAG }}"
45+ name : " Build & Publish Swift ${{ env.SWIFT_VERSION }}"
3246 with :
3347 swift-tag : ${{ env.SWIFT_TAG }}
3448 swift-workspace-cache : ${{ env.SWIFT_WORKSPACE_CACHE }}
35- distribution : ${{ github.job }}
36- builder-tag : ${{ env.SWIFT_BUILDER_TAG }}
37-
38- debian-bookworm :
39- name : Build for Debian Bookworm
40- runs-on : ubuntu-latest
41- needs : [fetch-sources]
42- steps :
43- - uses : actions/checkout@v4
44- - uses : ./.github/actions/build-for-distribution
45- name : " Build & Publish Swift: ${{ env.SWIFT_TAG }}"
46- with :
47- swift-tag : ${{ env.SWIFT_TAG }}
48- swift-workspace-cache : ${{ env.SWIFT_WORKSPACE_CACHE }}
49- distribution : ${{ github.job }}
50- builder-tag : ${{ env.SWIFT_BUILDER_TAG }}
51-
52- ubuntu-focal :
53- name : Build for Ubuntu Focal
54- runs-on : ubuntu-latest
55- needs : [fetch-sources]
56- steps :
57- - uses : actions/checkout@v4
58- - uses : ./.github/actions/build-for-distribution
59- name : " Build & Publish Swift: ${{ env.SWIFT_TAG }}"
49+ distribution : ${{ matrix.distribution }}
50+ builder-tag : ${{ env.SWIFT_VERSION }}
51+ - name : Update Release ${{ env.SWIFT_VERSION }}
52+ uses : ncipollo/release-action@v1
6053 with :
61- swift-tag : ${{ env.SWIFT_TAG }}
62- swift-workspace-cache : ${{ env.SWIFT_WORKSPACE_CACHE }}
63- distribution : ${{ github.job }}
64- builder-tag : ${{ env.SWIFT_BUILDER_TAG }}
65-
66- ubuntu-jammy :
67- name : Build for Ubuntu Jammy
68- runs-on : ubuntu-latest
69- needs : [fetch-sources]
70- steps :
71- - uses : actions/checkout@v4
72- - uses : ./.github/actions/build-for-distribution
73- name : " Build & Publish Swift: ${{ env.SWIFT_TAG }}"
74- with :
75- swift-tag : ${{ env.SWIFT_TAG }}
76- swift-workspace-cache : ${{ env.SWIFT_WORKSPACE_CACHE }}
77- distribution : ${{ github.job }}
78- builder-tag : ${{ env.SWIFT_BUILDER_TAG }}
79-
80- ubuntu-noble :
81- name : Build for Ubuntu Noble
82- runs-on : ubuntu-latest
83- needs : [fetch-sources]
84- steps :
85- - uses : actions/checkout@v4
86- - uses : ./.github/actions/build-for-distribution
87- name : " Build & Publish Swift: ${{ env.SWIFT_TAG }}"
88- with :
89- swift-tag : ${{ env.SWIFT_TAG }}
90- swift-workspace-cache : ${{ env.SWIFT_WORKSPACE_CACHE }}
91- distribution : ${{ github.job }}
92- builder-tag : ${{ env.SWIFT_BUILDER_TAG }}
54+ allowUpdates : true
55+ name : Swift ${{ env.SWIFT_VERSION }} for armv7
56+ tag : ${{ env.SWIFT_VERSION }}
57+ commit : ${{ github.sha }}
58+ artifactErrorsFailBuild : true
59+ artifacts : " *.tar.gz"
60+ body : " See the [README](https://github.com/xtremekforever/swift-armv7#continuous-integration) for more information on build artifacts."
0 commit comments