Skip to content
Merged
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
13 changes: 13 additions & 0 deletions .github/workflows/build-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Steps dist inserts into each build job before it installs the apt
# dependencies from dist-workspace.toml and runs `dist build`.
#
# dist runs `apt-get install` without `-y`. On GitHub's own runners that is
# harmless, because their apt is configured to assume yes; inside the
# buildpack-deps container the builds use, it is not, and apt answered its
# own "Do you want to continue?" with "Abort" -- which is how the 0.5.1
# pipeline failed on both architectures. Configure apt the way the runners
# do, in the container, before dist gets to it.
- name: Make apt non-interactive in the build container
run: |
printf 'APT::Get::Assume-Yes "true";\n' > /etc/apt/apt.conf.d/90-assume-yes
echo "DEBIAN_FRONTEND=noninteractive" >> "$GITHUB_ENV"
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
fi
- name: "Make apt non-interactive in the build container"
run: |
printf 'APT::Get::Assume-Yes "true";\n' > /etc/apt/apt.conf.d/90-assume-yes
echo "DEBIAN_FRONTEND=noninteractive" >> "$GITHUB_ENV"
- name: Install dist
run: ${{ matrix.install_dist.run }}
# Get the dist-manifest
Expand Down
3 changes: 3 additions & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ features = ["pam"]
# alongside the CI workflow. `ci.yml` builds the static musl archive on every
# pull request, which is the release step that can actually break.
pr-run-mode = "skip"
# Steps run in each build job before the apt dependencies below are installed:
# see the file for why.
github-build-setup = "build-setup.yml"

# Ship only the multicall binary. `shadow-rs-completions` is a build-time
# helper behind `required-features = ["completions"]`, so it is not part of a
Expand Down