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

Enable installation in aarch64 archs #9

Merged
merged 1 commit into from
Oct 12, 2024
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
25 changes: 17 additions & 8 deletions .github/workflows/selftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,36 @@ on: pull_request

jobs:
alr-install:
name: ${{ matrix.os }}, cache=${{ matrix.cached }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
cached: [false, true]
os:
- macos-12
- macos-latest
- ubuntu-latest
- windows-latest
cached:
- false
- true

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Selftest
uses: ./ # Uses the action code from the PR itself
with:
crates: gprbuild
# This can be changed to a more lightweight crate (hello)
# once we can install indexed releases.
# One binary and one source crate. We could use a lighter binary
# crate prepared to this effect... TODO.
crates: gprbuild hello
cache: ${{ matrix.cached }}

- name: Run check
shell: bash
run: |
which gprbuild
gprbuild --version
which gprbuild && \
gprbuild --version && \
hello | grep "Hello, world!"
10 changes: 8 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@ runs:

- name: Set up alr
if: steps.find-alr.outputs.available != 'true'
uses: alire-project/setup-alire@v3
uses: alire-project/setup-alire@v4
with:
cache: ${{inputs.cache}}

- name: Prepare alr version
id: alr-version
shell: bash
run: |
echo "version=$(alr --version)" >> $GITHUB_OUTPUT

- name: Prepare --force
id: force
shell: bash
Expand All @@ -69,7 +75,7 @@ runs:
id: cache-key
shell: bash
run: |
echo "key=[alr-install][${{runner.os}}][${{runner.arch}}][${{inputs.prefix}}][${{steps.find-versions.outputs.milestones}}]" >> $GITHUB_OUTPUT
echo "key=[1][alr-install][alr=${{steps.alr-version.outputs.version}}][${{runner.os}}][${{runner.arch}}][${{inputs.prefix}}][${{steps.find-versions.outputs.milestones}}]" >> $GITHUB_OUTPUT

- name: Reuse cached installation
if: inputs.cache == 'true'
Expand Down
Loading