40
40
run : |
41
41
sudo apt-get update
42
42
sudo apt-get install --no-install-recommends -y libarchive-tools libopenjp2-tools rpm squashfs-tools
43
-
44
- # We use Zig instead of glibc for cgo compilation as it is more-easily statically linked
45
- - name : Setup Zig (Linux only)
46
- if : matrix.platform == 'linux'
47
- run : sudo snap install zig --classic --beta
43
+ sudo snap install snapcraft --classic
44
+ sudo snap install zig --classic --beta # We use Zig instead of glibc for cgo compilation as it is more-easily statically linked
48
45
49
46
# The pre-installed version of the AWS CLI has a segfault problem so we'll install it via Homebrew instead.
50
47
- name : Upgrade AWS CLI (Mac only)
@@ -122,8 +119,15 @@ jobs:
122
119
path : ${{env.STATIC_DOCSITE_PATH}}
123
120
124
121
# Build and upload packages
125
- - name : Build (not Windows)
126
- if : matrix.platform != 'windows'
122
+ - name : Build (Linux)
123
+ if : matrix.platform == 'linux'
124
+ run : task package
125
+ env :
126
+ USE_SYSTEM_FPM : true # Ensure that the installed version of FPM is used rather than the bundled one.
127
+ STATIC_DOCSITE_PATH : ${{env.STATIC_DOCSITE_PATH}}
128
+ SNAPCRAFT_BUILD_ENVIRONMENT : host
129
+ - name : Build (Darwin)
130
+ if : matrix.platform == 'darwin'
127
131
run : task package
128
132
env :
129
133
USE_SYSTEM_FPM : true # Ensure that the installed version of FPM is used rather than the bundled one.
@@ -133,7 +137,7 @@ jobs:
133
137
APPLE_APP_SPECIFIC_PASSWORD : ${{ matrix.platform == 'darwin' && secrets.PROD_MACOS_NOTARIZATION_PWD_2 }}
134
138
APPLE_TEAM_ID : ${{ matrix.platform == 'darwin' && secrets.PROD_MACOS_NOTARIZATION_TEAM_ID_2 }}
135
139
STATIC_DOCSITE_PATH : ${{env.STATIC_DOCSITE_PATH}}
136
- - name : Build (Windows only )
140
+ - name : Build (Windows)
137
141
if : matrix.platform == 'windows'
138
142
run : task package
139
143
env :
0 commit comments