grub ~> bump version #16
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
name: NOIR CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
run-chroot-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl jq | |
- name: Get the release tarball url | |
id: get-tarball-url | |
run: | | |
LATEST_RELEASE_URL=$(curl -s https://api.github.com/repos/noirlinux/main/releases/latest | jq -r '.tarball_url') | |
echo "Latest release URL: $LATEST_RELEASE_URL" | |
echo "::set-output name=url::$LATEST_RELEASE_URL" | |
- name: Download the tarball | |
run: | | |
curl -L -o chroot.tar.gz ${{ steps.get-tarball-url.outputs.url }} | |
- name: Extract the tarball | |
run: | | |
sudo mkdir -p /chroot/ | |
sudo tar xzf chroot.tar.gz -C /chroot/ | |
echo "NOIR chroot extracted to /chroot/" | |
- name: Clone NOIR repos to chroot | |
run: | | |
sudo mkdir -p /chroot/root/ | |
sudo git clone https://github.com/noirlinux/main /chroot/root/main | |
- name: Enter Chroot and Run Script | |
run: | | |
sudo chroot /chroot /bin/sh -c "export KISS_PATH=/root/main/core:/root/main/extra; cd /var/db/kiss/installed && kiss build *" | |
- name: Check Exit Status | |
id: check_status | |
run: | | |
if [ $? -eq 0 ]; then | |
echo "::set-output name=status::success" | |
else | |
echo "::set-output name=status::failure" | |
fi | |
- name: Outcome | |
if: steps.check_status.outputs.status == 'failure' | |
run: | | |
echo "Script failed" | |
exit 1 |