Skip to content

Commit 196d9fd

Browse files
authored
Only portable builds (binaries) (#5615)
* release workflow: portable builds by default * Delete outdated comment * Merge branch 'unstable' into portable-builds-binaries # Conflicts: # .github/workflows/release.yml
1 parent aea02c6 commit 196d9fd

File tree

1 file changed

+29
-48
lines changed

1 file changed

+29
-48
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,22 @@ jobs:
3131
strategy:
3232
matrix:
3333
arch: [aarch64-unknown-linux-gnu,
34-
aarch64-unknown-linux-gnu-portable,
3534
x86_64-unknown-linux-gnu,
36-
x86_64-unknown-linux-gnu-portable,
3735
x86_64-apple-darwin,
38-
x86_64-apple-darwin-portable,
39-
x86_64-windows,
40-
x86_64-windows-portable]
36+
x86_64-windows]
4137
include:
4238
- arch: aarch64-unknown-linux-gnu
4339
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
4440
profile: maxperf
45-
- arch: aarch64-unknown-linux-gnu-portable
46-
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
47-
profile: maxperf
4841
- arch: x86_64-unknown-linux-gnu
4942
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
5043
profile: maxperf
51-
- arch: x86_64-unknown-linux-gnu-portable
52-
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
53-
profile: maxperf
5444
- arch: x86_64-apple-darwin
5545
runner: macos-13
5646
profile: maxperf
57-
- arch: x86_64-apple-darwin-portable
58-
runner: macos-13
59-
profile: maxperf
6047
- arch: x86_64-windows
6148
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
6249
profile: maxperf
63-
- arch: x86_64-windows-portable
64-
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
65-
profile: maxperf
6650

6751
runs-on: ${{ matrix.runner }}
6852
needs: extract-version
@@ -90,53 +74,29 @@ jobs:
9074
# Builds
9175
# ==============================
9276

93-
- name: Build Lighthouse for aarch64-unknown-linux-gnu-portable
94-
if: matrix.arch == 'aarch64-unknown-linux-gnu-portable'
95-
run: |
96-
cargo install cross
97-
env CROSS_PROFILE=${{ matrix.profile }} make build-aarch64-portable
98-
9977
- name: Build Lighthouse for aarch64-unknown-linux-gnu
10078
if: matrix.arch == 'aarch64-unknown-linux-gnu'
10179
run: |
10280
cargo install cross
103-
env CROSS_PROFILE=${{ matrix.profile }} make build-aarch64
104-
105-
- name: Build Lighthouse for x86_64-unknown-linux-gnu-portable
106-
if: matrix.arch == 'x86_64-unknown-linux-gnu-portable'
107-
run: |
108-
cargo install cross
109-
env CROSS_PROFILE=${{ matrix.profile }} make build-x86_64-portable
81+
env CROSS_PROFILE=${{ matrix.profile }} make build-aarch64-portable
11082
11183
- name: Build Lighthouse for x86_64-unknown-linux-gnu
11284
if: matrix.arch == 'x86_64-unknown-linux-gnu'
11385
run: |
11486
cargo install cross
115-
env CROSS_PROFILE=${{ matrix.profile }} make build-x86_64
116-
117-
- name: Move cross-compiled binary
118-
if: startsWith(matrix.arch, 'aarch64')
119-
run: mv target/aarch64-unknown-linux-gnu/${{ matrix.profile }}/lighthouse ~/.cargo/bin/lighthouse
87+
env CROSS_PROFILE=${{ matrix.profile }} make build-x86_64-portable
12088
12189
- name: Move cross-compiled binary
122-
if: startsWith(matrix.arch, 'x86_64-unknown-linux-gnu')
123-
run: mv target/x86_64-unknown-linux-gnu/${{ matrix.profile }}/lighthouse ~/.cargo/bin/lighthouse
124-
125-
- name: Build Lighthouse for x86_64-apple-darwin portable
126-
if: matrix.arch == 'x86_64-apple-darwin-portable'
127-
run: cargo install --path lighthouse --force --locked --features portable,gnosis --profile ${{ matrix.profile }}
90+
if: contains(matrix.arch, 'unknown-linux-gnu')
91+
run: mv target/${{ matrix.arch }}/${{ matrix.profile }}/lighthouse ~/.cargo/bin/lighthouse
12892

129-
- name: Build Lighthouse for x86_64-apple-darwin modern
93+
- name: Build Lighthouse for x86_64-apple-darwin
13094
if: matrix.arch == 'x86_64-apple-darwin'
131-
run: cargo install --path lighthouse --force --locked --features modern,gnosis --profile ${{ matrix.profile }}
132-
133-
- name: Build Lighthouse for Windows portable
134-
if: matrix.arch == 'x86_64-windows-portable'
13595
run: cargo install --path lighthouse --force --locked --features portable,gnosis --profile ${{ matrix.profile }}
13696

137-
- name: Build Lighthouse for Windows modern
97+
- name: Build Lighthouse for Windows
13898
if: matrix.arch == 'x86_64-windows'
139-
run: cargo install --path lighthouse --force --locked --features modern,gnosis --profile ${{ matrix.profile }}
99+
run: cargo install --path lighthouse --force --locked --features portable,gnosis --profile ${{ matrix.profile }}
140100

141101
- name: Configure GPG and create artifacts
142102
if: startsWith(matrix.arch, 'x86_64-windows') != true
@@ -151,6 +111,11 @@ jobs:
151111
cd artifacts
152112
tar -czf lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz lighthouse
153113
echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
114+
for ext in "tar.gz" "tar.gz.asc";\
115+
do for f in *.$ext;\
116+
do cp $f "../${f%.$ext}-portable.$ext";\
117+
done;\
118+
done
154119
mv *tar.gz* ..
155120
156121
- name: Configure GPG and create artifacts Windows
@@ -179,13 +144,29 @@ jobs:
179144
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
180145
compression-level: 0
181146

147+
- name: Upload artifact (copy)
148+
if: startsWith(matrix.arch, 'x86_64-windows') != true
149+
uses: actions/upload-artifact@v4
150+
with:
151+
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz
152+
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz
153+
compression-level: 0
154+
182155
- name: Upload signature
183156
uses: actions/upload-artifact@v4
184157
with:
185158
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
186159
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
187160
compression-level: 0
188161

162+
- name: Upload signature (copy)
163+
if: startsWith(matrix.arch, 'x86_64-windows') != true
164+
uses: actions/upload-artifact@v4
165+
with:
166+
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz.asc
167+
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz.asc
168+
compression-level: 0
169+
189170
draft-release:
190171
name: Draft Release
191172
needs: [build, extract-version]

0 commit comments

Comments
 (0)