mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +00:00
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
This commit is contained in:
77
.github/workflows/release.yml
vendored
77
.github/workflows/release.yml
vendored
@@ -31,38 +31,22 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [aarch64-unknown-linux-gnu,
|
arch: [aarch64-unknown-linux-gnu,
|
||||||
aarch64-unknown-linux-gnu-portable,
|
|
||||||
x86_64-unknown-linux-gnu,
|
x86_64-unknown-linux-gnu,
|
||||||
x86_64-unknown-linux-gnu-portable,
|
|
||||||
x86_64-apple-darwin,
|
x86_64-apple-darwin,
|
||||||
x86_64-apple-darwin-portable,
|
x86_64-windows]
|
||||||
x86_64-windows,
|
|
||||||
x86_64-windows-portable]
|
|
||||||
include:
|
include:
|
||||||
- arch: aarch64-unknown-linux-gnu
|
- arch: aarch64-unknown-linux-gnu
|
||||||
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
|
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
- arch: aarch64-unknown-linux-gnu-portable
|
|
||||||
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
|
|
||||||
profile: maxperf
|
|
||||||
- arch: x86_64-unknown-linux-gnu
|
- arch: x86_64-unknown-linux-gnu
|
||||||
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
|
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
- arch: x86_64-unknown-linux-gnu-portable
|
|
||||||
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "release", "large"]') || 'ubuntu-latest' }}
|
|
||||||
profile: maxperf
|
|
||||||
- arch: x86_64-apple-darwin
|
- arch: x86_64-apple-darwin
|
||||||
runner: macos-13
|
runner: macos-13
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
- arch: x86_64-apple-darwin-portable
|
|
||||||
runner: macos-13
|
|
||||||
profile: maxperf
|
|
||||||
- arch: x86_64-windows
|
- arch: x86_64-windows
|
||||||
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
|
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
|
||||||
profile: maxperf
|
profile: maxperf
|
||||||
- arch: x86_64-windows-portable
|
|
||||||
runner: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "release"]') || 'windows-2019' }}
|
|
||||||
profile: maxperf
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
needs: extract-version
|
needs: extract-version
|
||||||
@@ -90,53 +74,29 @@ jobs:
|
|||||||
# Builds
|
# Builds
|
||||||
# ==============================
|
# ==============================
|
||||||
|
|
||||||
- name: Build Lighthouse for aarch64-unknown-linux-gnu-portable
|
|
||||||
if: matrix.arch == 'aarch64-unknown-linux-gnu-portable'
|
|
||||||
run: |
|
|
||||||
cargo install cross
|
|
||||||
env CROSS_PROFILE=${{ matrix.profile }} make build-aarch64-portable
|
|
||||||
|
|
||||||
- name: Build Lighthouse for aarch64-unknown-linux-gnu
|
- name: Build Lighthouse for aarch64-unknown-linux-gnu
|
||||||
if: matrix.arch == 'aarch64-unknown-linux-gnu'
|
if: matrix.arch == 'aarch64-unknown-linux-gnu'
|
||||||
run: |
|
run: |
|
||||||
cargo install cross
|
cargo install cross
|
||||||
env CROSS_PROFILE=${{ matrix.profile }} make build-aarch64
|
env CROSS_PROFILE=${{ matrix.profile }} make build-aarch64-portable
|
||||||
|
|
||||||
- name: Build Lighthouse for x86_64-unknown-linux-gnu-portable
|
|
||||||
if: matrix.arch == 'x86_64-unknown-linux-gnu-portable'
|
|
||||||
run: |
|
|
||||||
cargo install cross
|
|
||||||
env CROSS_PROFILE=${{ matrix.profile }} make build-x86_64-portable
|
|
||||||
|
|
||||||
- name: Build Lighthouse for x86_64-unknown-linux-gnu
|
- name: Build Lighthouse for x86_64-unknown-linux-gnu
|
||||||
if: matrix.arch == 'x86_64-unknown-linux-gnu'
|
if: matrix.arch == 'x86_64-unknown-linux-gnu'
|
||||||
run: |
|
run: |
|
||||||
cargo install cross
|
cargo install cross
|
||||||
env CROSS_PROFILE=${{ matrix.profile }} make build-x86_64
|
env CROSS_PROFILE=${{ matrix.profile }} make build-x86_64-portable
|
||||||
|
|
||||||
- name: Move cross-compiled binary
|
- name: Move cross-compiled binary
|
||||||
if: startsWith(matrix.arch, 'aarch64')
|
if: contains(matrix.arch, 'unknown-linux-gnu')
|
||||||
run: mv target/aarch64-unknown-linux-gnu/${{ matrix.profile }}/lighthouse ~/.cargo/bin/lighthouse
|
run: mv target/${{ matrix.arch }}/${{ matrix.profile }}/lighthouse ~/.cargo/bin/lighthouse
|
||||||
|
|
||||||
- name: Move cross-compiled binary
|
- name: Build Lighthouse for x86_64-apple-darwin
|
||||||
if: startsWith(matrix.arch, 'x86_64-unknown-linux-gnu')
|
|
||||||
run: mv target/x86_64-unknown-linux-gnu/${{ matrix.profile }}/lighthouse ~/.cargo/bin/lighthouse
|
|
||||||
|
|
||||||
- name: Build Lighthouse for x86_64-apple-darwin portable
|
|
||||||
if: matrix.arch == 'x86_64-apple-darwin-portable'
|
|
||||||
run: cargo install --path lighthouse --force --locked --features portable,gnosis --profile ${{ matrix.profile }}
|
|
||||||
|
|
||||||
- name: Build Lighthouse for x86_64-apple-darwin modern
|
|
||||||
if: matrix.arch == 'x86_64-apple-darwin'
|
if: matrix.arch == 'x86_64-apple-darwin'
|
||||||
run: cargo install --path lighthouse --force --locked --features modern,gnosis --profile ${{ matrix.profile }}
|
|
||||||
|
|
||||||
- name: Build Lighthouse for Windows portable
|
|
||||||
if: matrix.arch == 'x86_64-windows-portable'
|
|
||||||
run: cargo install --path lighthouse --force --locked --features portable,gnosis --profile ${{ matrix.profile }}
|
run: cargo install --path lighthouse --force --locked --features portable,gnosis --profile ${{ matrix.profile }}
|
||||||
|
|
||||||
- name: Build Lighthouse for Windows modern
|
- name: Build Lighthouse for Windows
|
||||||
if: matrix.arch == 'x86_64-windows'
|
if: matrix.arch == 'x86_64-windows'
|
||||||
run: cargo install --path lighthouse --force --locked --features modern,gnosis --profile ${{ matrix.profile }}
|
run: cargo install --path lighthouse --force --locked --features portable,gnosis --profile ${{ matrix.profile }}
|
||||||
|
|
||||||
- name: Configure GPG and create artifacts
|
- name: Configure GPG and create artifacts
|
||||||
if: startsWith(matrix.arch, 'x86_64-windows') != true
|
if: startsWith(matrix.arch, 'x86_64-windows') != true
|
||||||
@@ -151,6 +111,11 @@ jobs:
|
|||||||
cd artifacts
|
cd artifacts
|
||||||
tar -czf lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz lighthouse
|
tar -czf lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz lighthouse
|
||||||
echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
|
echo "$GPG_PASSPHRASE" | gpg --passphrase-fd 0 --pinentry-mode loopback --batch -ab lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
|
||||||
|
for ext in "tar.gz" "tar.gz.asc";\
|
||||||
|
do for f in *.$ext;\
|
||||||
|
do cp $f "../${f%.$ext}-portable.$ext";\
|
||||||
|
done;\
|
||||||
|
done
|
||||||
mv *tar.gz* ..
|
mv *tar.gz* ..
|
||||||
|
|
||||||
- name: Configure GPG and create artifacts Windows
|
- name: Configure GPG and create artifacts Windows
|
||||||
@@ -179,6 +144,14 @@ jobs:
|
|||||||
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
|
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
||||||
|
- name: Upload artifact (copy)
|
||||||
|
if: startsWith(matrix.arch, 'x86_64-windows') != true
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz
|
||||||
|
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz
|
||||||
|
compression-level: 0
|
||||||
|
|
||||||
- name: Upload signature
|
- name: Upload signature
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -186,6 +159,14 @@ jobs:
|
|||||||
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
|
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz.asc
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
||||||
|
- name: Upload signature (copy)
|
||||||
|
if: startsWith(matrix.arch, 'x86_64-windows') != true
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz.asc
|
||||||
|
path: lighthouse-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}-portable.tar.gz.asc
|
||||||
|
compression-level: 0
|
||||||
|
|
||||||
draft-release:
|
draft-release:
|
||||||
name: Draft Release
|
name: Draft Release
|
||||||
needs: [build, extract-version]
|
needs: [build, extract-version]
|
||||||
|
|||||||
Reference in New Issue
Block a user