From 097ba1faac1c814e017abbb5be6bf33f8c860b62 Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Tue, 22 Oct 2024 09:00:29 +0200 Subject: [PATCH] wip: try to reproduce rebuild failure --- .github/workflows/reproducible-builds.yml | 37 ++++++++++++++++++----- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/.github/workflows/reproducible-builds.yml b/.github/workflows/reproducible-builds.yml index b615d010a9..24668df534 100644 --- a/.github/workflows/reproducible-builds.yml +++ b/.github/workflows/reproducible-builds.yml @@ -19,15 +19,20 @@ jobs: fail-fast: false matrix: target: - - "cli_enterprise_darwin_amd64" - - "cli_enterprise_darwin_arm64" + # - "cli_enterprise_darwin_amd64" + # - "cli_enterprise_darwin_arm64" - "cli_enterprise_linux_amd64" - - "cli_enterprise_linux_arm64" - - "cli_enterprise_windows_amd64" - runner: ["ubuntu-22.04", "ubuntu-20.04"] + # - "cli_enterprise_linux_arm64" + # - "cli_enterprise_windows_amd64" + runner: + - "ubuntu-22.04" + # - "ubuntu-20.04" + deps: + # - conventional + - eccentric env: bazel_target: "//cli:${{ matrix.target }}" - binary: "${{ matrix.target }}-${{ matrix.runner }}" + binary: "${{ matrix.target }}-${{ matrix.runner }}-${{ matrix.deps }}" runs-on: ${{ matrix.runner }} steps: - name: Checkout @@ -35,8 +40,24 @@ jobs: with: ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - - name: Setup bazel + - name: Setup dependencies uses: ./.github/actions/setup_bazel_nix + if: matrix.deps == 'conventional' + + - name: Setup Bazel (eccentric) + if: matrix.deps == 'eccentric' + run: | + # nix + # curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install + version=$(cat .bazelversion) + mkdir -p "$HOME/.local/bin" + curl -fsSL -o "$HOME/.local/bin/bazel" https://github.com/bazelbuild/bazel/releases/download/$version/bazel-$version-linux-x86_64 + chmod a+x "$HOME/.local/bin/bazel" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + + - name: Setup Nix (eccentric) + uses: DeterminateSystems/nix-installer-action@main + if: matrix.deps == 'eccentric' - name: Build shell: bash @@ -82,6 +103,7 @@ jobs: bazel_target: "//image/system:${{ matrix.target }}" binary: "osimage-${{ matrix.target }}-${{ matrix.runner }}" runs-on: ${{ matrix.runner }} + if: false steps: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -167,6 +189,7 @@ jobs: - "qemu_qemu-vtpm_debug" - "gcp_gcp-sev-snp_nightly" runs-on: ubuntu-24.04 + if: false steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: