Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nightlies: attempt to build Linux binaries without Internet #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 8 additions & 2 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
# Bump this value when a rebuild of nightlies (of the
# same compiler commits) has to be done.
nightlies_revision: 2
nightlies_revision: 3

steps:
- name: Checkout nightlies
Expand Down Expand Up @@ -389,7 +389,13 @@ jobs:
if: steps.built.outputs.cache-hit != 'true'
shell: bash
run: |
nightlies/build-release.sh 'nim-${{ steps.source.outputs.version }}'
if [[ '${{ runner.os }}' == Linux ]]; then
# Build nightlies without Internet to ensure that generated source
# can be built without Internet.
sudo unshare sudo -u "$USER" nightlies/build-release.sh 'nim-${{ steps.source.outputs.version }}'
else
nightlies/build-release.sh 'nim-${{ steps.source.outputs.version }}'
fi

- name: Prepare binaries for uploads
id: release
Expand Down