File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -32,23 +32,19 @@ jobs:
32
32
name : executable-swift-MacOS
33
33
path : swift/.build/apple/Products/Release/wrongsecrets-swift
34
34
build-glibclinux :
35
- name : MacOS (Intel&ARM)
36
- runs-on : macos -latest
35
+ name : Linux (Intel&ARM)
36
+ runs-on : ubuntu -latest
37
37
steps :
38
38
- uses : actions/checkout@v4
39
- - uses : swift-actions/setup-swift@v1
40
- with :
41
- swift-version : " 5.9"
42
- - name : Get swift version
43
- run : swift --version # Swift 5.9.x
44
39
- name : Compile Swift for glibc linux
45
40
run : |
46
41
echo "compiling for Linux"
47
42
mkdir target
48
- (cd swift && docker run -v "$PWD:/sources" -w /sources --platform linux/arm64 swift:latest swift run -c release --static-swift-stdlib)
49
- (cd swift && cp .build/aarch64-unknown-linux-gnu/release/wrongsecrets-swift ../target/wrongsecrets-swift-linux-arm)
50
- (cd swift && docker run -v "$PWD:/sources" -w /sources --platform linux/amd64 swift:latest swift run -c release)
51
- (cd swift && cp .build/x86_64-unknown-linux-gnu/release/wrongsecrets-swift ../target/wrongsecrets-swift-linux --static-swift-stdlib)
43
+ cd swift
44
+ docker run -v "$PWD:/sources" -w /sources --platform linux/arm64 swift:latest swift run -c release --static-swift-stdlib
45
+ cp .build/aarch64-unknown-linux-gnu/release/wrongsecrets-swift ../target/wrongsecrets-swift-linux-arm
46
+ docker run -v "$PWD:/sources" -w /sources --platform linux/amd64 swift:latest swift run -c release
47
+ cp .build/x86_64-unknown-linux-gnu/release/wrongsecrets-swift ../target/wrongsecrets-swift-linux --static-swift-stdlib
52
48
- name : Uploading Swift executables
53
49
uses : actions/upload-artifact@v4
54
50
with :
You can’t perform that action at this time.
0 commit comments