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

fix: static linking to libgcc in nightlies #1774

Closed
wants to merge 2 commits into from
Closed
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
1 change: 1 addition & 0 deletions .github/workflows/ci-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: alire-project/alr-install@v1
with:
crates: gnat_native^${{matrix.gcc_version}} gprbuild
cache: false

- name: Build alr with toolchain from `alr install`
shell: bash
Expand Down
33 changes: 22 additions & 11 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,52 @@ jobs:
fail-fast: false # Attempt to generate as many of them as possible
matrix:
os:
- macos-14
- macos-12
- macos-14
- ubuntu-20.04
- windows-latest

steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

- name: Install FSF toolchain
uses: alire-project/alr-install@v1
with:
crates: gnat_native gprbuild
prefix: alire_prefix

- name: Replace toolchain with aarch64
if: ${{ runner.arch == 'ARM64' }}
- name: Display toolchain configuration and verify matching arch
shell: bash
run: |
curl -L https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-14.1.0-3/gnat-aarch64-darwin-14.1.0-3.tar.gz \
| tar xzf - --strip-components=1 -C /Users/runner/work/alire/alire/alire_prefix
curl -L https://github.com/alire-project/GNAT-FSF-builds/releases/download/gprbuild-24.0.0-1/gprbuild-aarch64-darwin-24.0.0-1.tar.gz \
| tar xzf - --strip-components=1 -C /Users/runner/work/alire/alire/alire_prefix
which gcc
gcc -v
case ${{runner.arch}} in
X64) target_arch=x86_64;;
ARM64) target_arch=aarch64;;
*) echo "Unknown arch" && exit 1;;
esac
which gcc
gcc -v
gcc -dumpmachine && gcc -dumpmachine | grep -q $target_arch || exit 1
gprbuild --version && gprbuild --version | grep -q $target_arch || exit 1

- name: Install Python 3.x (required for the testsuite)
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Run test script
run: scripts/ci-github.sh
shell: bash

# Ascertain whether alr can run without the toolchain that built it
- name: Remove toolchain used for building & testing
shell: bash
run: |
rm -rf alire_prefix
which gnat || { echo "Toolchain purged"; ./bin/alr version; }

- name: Upload logs (if failed)
if: failure()
uses: actions/upload-artifact@v4
Expand Down
Loading