File tree Expand file tree Collapse file tree 5 files changed +77
-7
lines changed
Tests/NativeBuilderTests/ContainerBuildIRTests Expand file tree Collapse file tree 5 files changed +77
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : container project - merge build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - release/*
8
+
9
+ jobs :
10
+ build :
11
+ name : Invoke build
12
+ uses : ./.github/workflows/common.yml
13
+ with :
14
+ release : true
15
+ secrets : inherit
16
+ permissions :
17
+ contents : read
18
+ packages : read
19
+ pages : write
Original file line number Diff line number Diff line change 1
- name : container project - PR/merge build
1
+ name : container project - PR build
2
2
3
3
on :
4
4
pull_request :
5
5
types : [opened, reopened, synchronize]
6
- push :
7
- branches :
8
- - main
9
- - release/*
10
6
11
7
jobs :
12
8
build :
Original file line number Diff line number Diff line change
1
+ name : container project - release build
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " [0-9]+\\ .[0-9]+\\ .[0-9]+"
7
+
8
+ jobs :
9
+ build :
10
+ name : Invoke build and release
11
+ uses : ./.github/workflows/common.yml
12
+ with :
13
+ release : true
14
+ secrets : inherit
15
+ permissions :
16
+ contents : read
17
+ packages : read
18
+ pages : write
19
+
20
+ release :
21
+ if : startsWith(github.ref, 'refs/tags/')
22
+ name : Publish release
23
+ timeout-minutes : 30
24
+ needs : build
25
+ runs-on : ubuntu-latest
26
+ permissions :
27
+ contents : write
28
+ packages : read
29
+ pages : write
30
+ steps :
31
+ - name : Download artifacts
32
+ uses : actions/download-artifact@v4
33
+ with :
34
+ path : outputs
35
+
36
+ - name : Verify artifacts exist
37
+ run : |
38
+ echo "Checking for expected artifacts..."
39
+ ls -la outputs/container-package/
40
+ test -e outputs/container-package/*.zip || (echo "Missing .zip file!" && exit 1)
41
+ test -e outputs/container-package/*.pkg || (echo "Missing .pkg file!" && exit 1)
42
+
43
+ - name : Create release
44
+ uses : softprops/action-gh-release@v2
45
+ with :
46
+ token : ${{ github.token }}
47
+ name : ${{ github.ref_name }}-prerelease
48
+ draft : true
49
+ make_latest : false
50
+ prerelease : true
51
+ fail_on_unmatched_files : true
52
+ files : |
53
+ outputs/container-package/*.zip
54
+ outputs/container-package/*.pkg
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ all: init-block
50
50
.PHONY : build
51
51
build :
52
52
@echo Building container binaries...
53
+ @$(SWIFT ) --version
53
54
@$(SWIFT ) build -c $(BUILD_CONFIGURATION )
54
55
55
56
.PHONY : container
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ struct DependencyAnalysisTests {
67
67
#expect( analyzedStage. nodes [ 2 ] . dependencies. count == 1 )
68
68
}
69
69
70
- @Test func crossStageDependenciesWithCopyFrom( ) throws {
70
+ @Test ( . disabled ( ) ) func crossStageDependenciesWithCopyFrom( ) throws {
71
71
guard let alpineRef = ImageReference ( parsing: " alpine " ) ,
72
72
let ubuntuRef = ImageReference ( parsing: " ubuntu " )
73
73
else {
@@ -132,7 +132,7 @@ struct DependencyAnalysisTests {
132
132
" Entrypoint should depend on copy operation " )
133
133
}
134
134
135
- @Test func stageReferenceResolution( ) throws {
135
+ @Test ( . disabled ( ) ) func stageReferenceResolution( ) throws {
136
136
guard let alpineRef = ImageReference ( parsing: " alpine " ) else {
137
137
Issue . record ( " Failed to parse image reference " )
138
138
return
You can’t perform that action at this time.
0 commit comments