Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/bookworm-aarch64-sysroot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: bookworm-aarch64 sysroot
on:
pull_request:
paths:
- "sysroot/**"
- .github/workflows/bookworm-aarch64-sysroot.yaml
push:
tags:
- "bookworm-sysroot-*"

jobs:
toolchains:
runs-on: ubuntu-22.04
name: bookworm-aarch64 sysroot
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Create sysroot
run: ./sysroot/sysroot-creator.sh build arm64

- name: Upload sysroot
uses: actions/upload-artifact@v4
with:
name: debian_bookworm_aarch64_sysroot.tar.xz
path: sysroot/out/sysroot-build/bookworm/debian_bookworm_arm64_sysroot.tar.xz

- uses: bazel-contrib/setup-bazel@0.15.0

- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel

- name: Copy sysroot
run: cp sysroot/out/sysroot-build/bookworm/debian_bookworm_arm64_sysroot.tar.xz debian_bookworm_aarch64_sysroot.tar.xz

- name: Test sysroot
run: bazel build --config=aarch64_sysroot //sysroot/...

- name: Release sysroot
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "sysroot/out/sysroot-build/bookworm/debian_bookworm_arm64_sysroot.tar.xz"
tag: ${{ github.ref }}
asset_name: debian_bookworm_aarch64_sysroot.tar.xz
overwrite: true
51 changes: 51 additions & 0 deletions .github/workflows/bookworm-x86_64-sysroot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: bookworm-x86_64 sysroot
on:
pull_request:
paths:
- "sysroot/**"
- .github/workflows/bookworm-x86_64-sysroot.yaml
push:
tags:
- "bookworm-sysroot-*"

jobs:
toolchains:
runs-on: ubuntu-22.04
name: bookworm-x86_64 sysroot
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Create sysroot
run: ./sysroot/sysroot-creator.sh build amd64

- name: Upload sysroot
uses: actions/upload-artifact@v4
with:
name: debian_bookworm_x86_64_sysroot.tar.xz
path: sysroot/out/sysroot-build/bookworm/debian_bookworm_amd64_sysroot.tar.xz

- uses: bazel-contrib/setup-bazel@0.15.0

- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel

- name: Copy sysroot
run: cp sysroot/out/sysroot-build/bookworm/debian_bookworm_amd64_sysroot.tar.xz debian_bookworm_x86_64_sysroot.tar.xz

- name: Test sysroot
run: bazel build --config=x86_64_sysroot //sysroot/...

- name: Release sysroot
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "sysroot/out/sysroot-build/bookworm/debian_bookworm_amd64_sysroot.tar.xz"
tag: ${{ github.ref }}
asset_name: debian_bookworm_x86_64_sysroot.tar.xz
overwrite: true
51 changes: 0 additions & 51 deletions .github/workflows/bullseye-aarch64-sysroot.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/bullseye-x86_64-sysroot.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ filegroup(
visibility = ["//visibility:public"],
)
""",
src = "//:debian_bullseye_aarch64_sysroot.tar.xz",
src = "//:debian_bookworm_aarch64_sysroot.tar.xz",
)

local_archive(
Expand All @@ -51,5 +51,5 @@ filegroup(
visibility = ["//visibility:public"],
)
""",
src = "//:debian_bullseye_x86_64_sysroot.tar.xz",
src = "//:debian_bookworm_x86_64_sysroot.tar.xz",
)
12 changes: 12 additions & 0 deletions sysroot/generated_package_lists/bookworm.amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libgcc-10-dev_10.2.1-6_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libgcc-s1_10.2.1-6_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libstdc++-10-dev_10.2.1-6_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libstdc++6_10.2.1-6_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/glibc/libc6-dev_2.31-13+deb11u5_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/glibc/libc6_2.31-13+deb11u5_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/libblas-dev_3.9.0-3+deb11u1_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/libblas3_3.9.0-3+deb11u1_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/liblapack-dev_3.9.0-3+deb11u1_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/liblapack3_3.9.0-3+deb11u1_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/linux/linux-libc-dev_5.10.218-1_amd64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/u/util-linux/uuid-dev_2.36.1-8+deb11u2_amd64.deb
12 changes: 12 additions & 0 deletions sysroot/generated_package_lists/bookworm.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libgcc-10-dev_10.2.1-6_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libgcc-s1_10.2.1-6_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libstdc++-10-dev_10.2.1-6_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/gcc-10/libstdc++6_10.2.1-6_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/glibc/libc6-dev_2.31-13+deb11u5_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/g/glibc/libc6_2.31-13+deb11u5_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/libblas-dev_3.9.0-3+deb11u1_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/libblas3_3.9.0-3+deb11u1_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/liblapack-dev_3.9.0-3+deb11u1_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/lapack/liblapack3_3.9.0-3+deb11u1_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/l/linux/linux-libc-dev_5.10.218-1_arm64.deb
https://snapshot.debian.org/archive/debian/20240829T000000Z/pool/main/u/util-linux/uuid-dev_2.36.1-8+deb11u2_arm64.deb
Binary file modified sysroot/keyring.gpg
Binary file not shown.
21 changes: 8 additions & 13 deletions sysroot/sysroot-creator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,26 @@ set -o errexit
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

DISTRO=debian
RELEASE=bullseye
RELEASE=bookworm

# This number is appended to the sysroot key to cause full rebuilds. It
# should be incremented when removing packages or patching existing packages.
# It should not be incremented when adding packages.
SYSROOT_RELEASE=1

ARCHIVE_TIMESTAMP=20230329T085712Z
ARCHIVE_TIMESTAMP=20240829T000000Z

ARCHIVE_URL="https://snapshot.debian.org/archive/debian/$ARCHIVE_TIMESTAMP/"
APT_SOURCES_LIST=(
# Debian 12 (Bookworm) is needed for GTK4. It should be kept before bullseye
# so that bullseye takes precedence.
"${ARCHIVE_URL} bookworm main"
"${ARCHIVE_URL} bookworm-updates main"
# This mimics a sources.list from bookworm.
"${ARCHIVE_URL} bookworm main contrib non-free non-free-firmware"
"${ARCHIVE_URL} bookworm-updates main contrib non-free non-free-firmware"
"${ARCHIVE_URL} bookworm-backports main contrib non-free non-free-firmware"

# Debian 9 (Stretch) is needed for gnome-keyring. It should be kept before
# bullseye so that bullseye takes precedence.
"${ARCHIVE_URL} stretch main"
"${ARCHIVE_URL} stretch-updates main"

# This mimics a sources.list from bullseye.
# Debian 11 (Bullseye) is kept for compatibility with older packages if needed.
# It should be kept after bookworm so that bookworm takes precedence.
"${ARCHIVE_URL} bullseye main contrib non-free"
"${ARCHIVE_URL} bullseye-updates main contrib non-free"
"${ARCHIVE_URL} bullseye-backports main contrib non-free"
)

# gpg keyring file generated using generate_keyring.sh
Expand Down