@@ -32,13 +32,13 @@ jobs:
32
32
33
33
- name : Install Boost for x86_64
34
34
run : |
35
- $VCPKG_ROOT/vcpkg install --triplet=x64-osx
35
+ $VCPKG_ROOT/vcpkg install boost --triplet=x64-osx
36
36
37
37
- name : Install Boost for arm64
38
38
run : |
39
- $VCPKG_ROOT/vcpkg install --triplet=arm64-osx
39
+ $VCPKG_ROOT/vcpkg install boost --triplet=arm64-osx
40
40
41
- - name : Configure Build with vcpkg for x86_64
41
+ - name : Configure Build for x86_64
42
42
run : |
43
43
mkdir -p build_x86_64
44
44
cd build_x86_64
51
51
cd build_x86_64
52
52
cmake --build .
53
53
54
- - name : Configure Build with vcpkg for arm64
54
+ - name : Configure Build for arm64
55
55
run : |
56
56
mkdir -p build_arm64
57
57
cd build_arm64
@@ -67,25 +67,31 @@ jobs:
67
67
- name : Combine the binaries into a universal binary
68
68
run : |
69
69
mkdir -p artifacts
70
- lipo -create -output artifacts/shinysocks-macos \
70
+ mkdir -p build_universal
71
+ lipo -create -output build_universal/shinysocks-macos \
71
72
build_x86_64/bin/shinysocks \
72
73
build_arm64/bin/shinysocks
73
74
74
75
- name : Verify Universal Binary
75
76
run : |
76
- file artifacts/shinysocks-macos
77
+ file build_universal/shinysocks-macos
78
+
79
+ - name : Make tarfile
80
+ run : |
81
+ cp -v shinysocks.conf build_universal/ # Ensure config file is copied
82
+ tar -czf artifacts/shinysocks-macos.tar.gz -C build_universal shinysocks-macos shinysocks.conf
77
83
78
84
- name : Archive Artifacts
79
85
uses : actions/upload-artifact@v4
80
86
with :
81
- name : logfault -macos
82
- path : artifacts/*
87
+ name : shinysocks -macos
88
+ path : artifacts/shinysocks-macos.tar.gz
83
89
retention-days : 1
84
90
85
91
- name : Upload Release Artifact
86
92
if : github.event_name == 'release'
87
93
uses : softprops/action-gh-release@v2
88
94
with :
89
- files : artifacts/shinysocks-macos
95
+ files : artifacts/shinysocks-macos.tar.gz
90
96
name : shinysocks-macos
91
97
token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments