File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 25
25
os : ubuntu-20.04
26
26
- swift-version : wasm-5.6.0-RELEASE
27
27
os : macos-11
28
+ - swift-version : wasm-5.8.0-RELEASE
29
+ os : ubuntu-latest
30
+ container : amazonlinux:2
28
31
runs-on : ${{ matrix.os }}
32
+ container : ${{ matrix.container }}
29
33
steps :
30
34
- uses : actions/checkout@v3
31
35
- uses : ./
Original file line number Diff line number Diff line change @@ -114,7 +114,13 @@ function resolveHostPlatform() {
114
114
if ( osRelease . ID === "ubuntu" ) {
115
115
const arch = normalizeArch ( os . arch ( ) ) ;
116
116
return { suffix : `ubuntu${ osRelease . VERSION_ID } _${ arch } ` , pkg : "tar.gz" , arch } ;
117
+ } else if ( osRelease . ID === "amzn" ) {
118
+ if ( osRelease . VERSION_ID === "2" ) {
119
+ const arch = normalizeArch ( os . arch ( ) ) ;
120
+ return { suffix : `amazonlinux2_${ arch } ` , pkg : "tar.gz" , arch } ;
121
+ }
117
122
}
123
+ throw new Error ( `Unsupported Linux distribution: ${ osRelease . ID } ${ osRelease . VERSION_ID } ` ) ;
118
124
} else if ( platform === "macos" ) {
119
125
const arch = normalizeArch ( os . arch ( ) ) ;
120
126
return { suffix : `macos_${ arch } ` , pkg : "pkg" , arch } ;
You can’t perform that action at this time.
0 commit comments