Skip to content

Commit

Permalink
wip: try to reproduce rebuild failure
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Oct 22, 2024
1 parent 96ac712 commit 4fc8690
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/reproducible-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,44 @@ 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
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
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
mkdir -p "$HOME/.local/bin"
curl -sSL -o "$HOME/.local/bin/bazel" https://github.com/bazelbuild/bazel/releases/download/$1/bazel-$1-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
Expand Down Expand Up @@ -82,6 +102,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
Expand Down Expand Up @@ -167,6 +188,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:
Expand Down

0 comments on commit 4fc8690

Please sign in to comment.