Skip to content

Commit

Permalink
Building on old platforms gets hard. Just relase the static builds.
Browse files Browse the repository at this point in the history
Building on a bunch of different platforms often creates trouble,
and with a recent required switch to bazel5 (because of a newer
protobuf version), the java requirements are not met anymore.

However, we already build static binaries that are available for
Linux x86 and arm64 (which are only slightly larger than the
dynamically  linked ones) so let's simplify the release process and just
provide the static binaries.

This makes it simple for everyone who wants to download and run
Verible; for everyone else, they still can compile it themselve
or use the version from their Linux distribution.

Fixes #1871
  • Loading branch information
hzeller committed Dec 19, 2023
1 parent 4f5d869 commit 0875afb
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 468 deletions.
43 changes: 0 additions & 43 deletions .github/bin/generate-matrix.py

This file was deleted.

72 changes: 0 additions & 72 deletions .github/bin/github-releases-setup.sh

This file was deleted.

76 changes: 1 addition & 75 deletions .github/workflows/verible-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,80 +303,6 @@ jobs:
with:
path: kythe_output/*.kzip


Matrix:
runs-on: ubuntu-latest
name: Generate Build matrix
outputs:
matrix: ${{ steps.generate.outputs.matrix }}

steps:

- uses: actions/checkout@v3

- id: generate
run: ./.github/bin/generate-matrix.py


Build:
needs: Matrix
container: ubuntu:jammy
runs-on: [self-hosted, Linux, X64, gcp-custom-runners]
# Github actions resources are limited; don't build artifacts for all
# platforms on every pull request, only on push.
if: ${{github.event_name == 'push'}}
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.Matrix.outputs.matrix) }}
env:
MATRIX_OS: '${{ matrix.os }}:${{ matrix.ver }}'
LINK_TYPE: '${{ matrix.link }}'
ARCH: '${{ matrix.arch }}'
DOCKER_DATA_ROOT: "/root/.docker"
GHA_MACHINE_TYPE: "${{ matrix.arch == 'arm64' && 't2a-standard-8' || 'n2-highcpu-8' }}"
name: "Build ·${{ matrix.arch }}:${{ matrix.os }}:${{ matrix.ver }}${{ matrix.link == 'static' && ':static' || '' }}"

steps:

- uses: actions/checkout@v3
with:
# Download complete repository + tags
fetch-depth: 0

- name: Install and setup Docker
run: "apt -qqy update && apt -qqy --no-install-recommends install docker.io cgroupfs-mount crun fuse-overlayfs pigz ca-certificates git && cgroupfs-mount"

- name: Main script
run: |
set -x
mkdir -p "$DOCKER_DATA_ROOT"
dockerd \
-s fuse-overlayfs \
--add-runtime=crun=/usr/bin/crun \
--default-runtime=crun \
--config-file="" \
--data-root=$DOCKER_DATA_ROOT > /dev/null 2>&1 &
while ! test -S /var/run/docker.sock; do echo "Waiting for Docker..." && sleep 1; done; docker info
trap "kill $(cat /var/run/docker.pid)" EXIT
docker pull $MATRIX_OS
source ./.github/settings.sh
ARCH="$ARCH" LINK_TYPE="$LINK_TYPE" ./releasing/docker-run.sh $MATRIX_OS
- name: 📤 Upload artifact
uses: actions/upload-artifact@v2
with:
path: releasing/out/verible-*.tar.gz

- name: 📤 Upload performance graphs
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: "diag"
path: "**/plot_*.svg"

MacOsBuildDevTools:
runs-on: macos-latest
steps:
Expand Down Expand Up @@ -546,7 +472,7 @@ jobs:
Release:
needs: [ Check, Build, MacOsBuild, WindowsBuild, PrepareVSPlugin ]
needs: [ Check, MacOsBuild, WindowsBuild, PrepareVSPlugin ]
runs-on: ubuntu-20.04
name: 📦 Release
if: ${{github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')}}
Expand Down
21 changes: 0 additions & 21 deletions releasing/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions releasing/bazel.dockerstage

This file was deleted.

21 changes: 0 additions & 21 deletions releasing/build.sh

This file was deleted.

10 changes: 0 additions & 10 deletions releasing/centos.dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions releasing/centos/common/compiler.dockerstage

This file was deleted.

2 changes: 0 additions & 2 deletions releasing/centos/common/help2man.dockerstage

This file was deleted.

Loading

0 comments on commit 0875afb

Please sign in to comment.