-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: CI macOS ARM64 | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'doc/**' | ||
- '**.md' | ||
- '**.rst' | ||
- '**.txt' | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
name: CI on macOS | ||
|
||
runs-on: macos-14 | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
# - name: Install FSF toolchain | ||
# uses: alire-project/alr-install@v1 | ||
# with: | ||
# crates: gnat_native gprbuild | ||
|
||
- name: Install FSF toolchain | ||
run: | | ||
curl -L -O https://github.com/alire-project/alire/releases/download/nightly/alr-nightly-bin-aarch64-macos.zip | ||
unzip alr-nightly-bin-aarch64-macos.zip bin/alr | ||
bin/alr index --reset-community | ||
bin/alr install gnat_native gprbuild --prefix alire_prefix | ||
echo $PWD/bin >> $GITHUB_PATH | ||
echo $PWD/alire_prefix/bin >> $GITHUB_PATH | ||
- name: Install Python 3.x (required for the testsuite) | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Run test script | ||
run: scripts/ci-github.sh | ||
shell: bash | ||
env: | ||
BRANCH: ${{ github.base_ref }} | ||
INDEX: "" | ||
|
||
- name: Upload binaries | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: alr-bin-macos.zip | ||
path: | | ||
bin/alr | ||
LICENSE.txt | ||
- name: Upload logs (if failed) | ||
if: failure() | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: testsuite-log-macos.zip | ||
path: testsuite/out | ||
|
||
# Release steps start here. These only run during a release creation. | ||
|
||
- name: Retrieve upload URL for the release | ||
if: github.event_name == 'release' | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Get release version | ||
id: get_version | ||
if: github.event_name == 'release' | ||
uses: battila7/get-version-action@v2 | ||
|
||
- name: Package release binaries | ||
if: github.event_name == 'release' | ||
run: zip alr-bin-macos.zip bin/alr LICENSE.txt | ||
|
||
- name: Upload release assets | ||
if: github.event_name == 'release' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: alr-bin-macos.zip | ||
asset_name: alr-${{ steps.get_version.outputs.version-without-v }}-bin-arm64-macos.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI macOS | ||
name: CI macOS X64 | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters