diff --git a/.github/workflows/reproducible-builds.yml b/.github/workflows/reproducible-builds.yml index b615d010a9..0b4fb71415 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 @@ -59,13 +80,13 @@ jobs: - name: Upload binary artifact uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 with: - name: "binaries-${{ matrix.target }}-${{ matrix.runner }}" + name: "binaries-${{ matrix.target }}-${{ matrix.runner }}-${{ matrix.deps }}" path: "${{ env.binary }}" - name: Upload hash artifact uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 with: - name: "sha256sums-${{ matrix.target }}-${{ matrix.runner }}" + name: "sha256sums-${{ matrix.target }}-${{ matrix.runner }}-${{ matrix.deps }}" path: "${{ env.binary }}.sha256" build-osimages: @@ -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 @@ -127,11 +149,11 @@ 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" + # - "cli_enterprise_linux_arm64" + # - "cli_enterprise_windows_amd64" runs-on: ubuntu-24.04 steps: - 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: