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

Installation script check #29

Merged
merged 5 commits into from
Mar 1, 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
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,42 +46,3 @@ jobs:
- uses: actions/checkout@v4
- name: typos-action
uses: crate-ci/typos@v1.16.23

verify-installation-script:
name: Verify installation script
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest

- target: x86_64-unknown-linux-musl
os: ubuntu-latest

- target: aarch64-unknown-linux-gnu
os: ubuntu-latest

- target: aarch64-unknown-linux-musl
os: ubuntu-latest

- target: x86_64-apple-darwin
os: macos-latest

- target: aarch64-apple-darwin
os: macos-latest

steps:
- uses: actions/checkout@v4

- name: Install and check
run: |
bash ./scripts/install.sh

source ~/.bashrc

if ! command -v universal-sierra-compiler &> /dev/null; then
echo "universal-sierra-compiler was not installed"
exit 1
fi
53 changes: 53 additions & 0 deletions .github/workflows/installation_script_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Check installation script

on:
pull_request:
paths:
- scripts/install.sh
merge_group:
paths:
- scripts/install.sh
push:
branches:
- master
paths:
- scripts/install.sh

jobs:
verify-installation-script:
name: Verify installation script
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest

- target: x86_64-unknown-linux-musl
os: ubuntu-latest

- target: aarch64-unknown-linux-gnu
os: ubuntu-latest

- target: aarch64-unknown-linux-musl
os: ubuntu-latest

- target: x86_64-apple-darwin
os: macos-latest

- target: aarch64-apple-darwin
os: macos-latest

steps:
- uses: actions/checkout@v4

- name: Install and check
run: |
bash ./scripts/install.sh
source ~/.bashrc

if ! command -v universal-sierra-compiler &> /dev/null; then
echo "universal-sierra-compiler was not installed"
exit 1
fi
Loading