This repository has been archived by the owner on May 2, 2024. It is now read-only.
RisingOS GSI #13
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: RisingOS GSI | |
on: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Build GSIs using foss.crave.io | |
runs-on: self-hosted | |
steps: | |
- name: Cleanup | |
run: rm -rf * | |
- name: Create workspace | |
run: mkdir gsi | |
continue-on-error: true | |
- name: Enter Workspace | |
run: cd gsi | |
continue-on-error: true | |
# Check-out in order to access the repository's files. | |
- name: Check-out to repository | |
uses: actions/checkout@v4 | |
- name: Exports | |
run: | | |
export BUILD_HOSTNAME=crave | |
export BUILD_USERNAME=OkBuddyGSI | |
- name: Run Script | |
run: bash build.sh | |
# Only reach this when the user killed the workflow. | |
- name: Execute if the job is cancelled | |
if: ${{ cancelled() }} | |
run: crave stop --all | |
- name: Find output file | |
run: | | |
mv */system.img RisingOS-Generic-$(date +%Y%m%d)-OkBuddyGSI-EXPERIMENTATIONS.img | |
mv system.img RisingOS-Generic-$(date +%Y%m%d)-OkBuddyGSI-EXPERIMENTATIONS.img | |
- name: Upload to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
*.img | |
name: RisingOS-${{ github.run_id }} | |
tag_name: ${{ github.run_id }} | |
body: | | |
Target: RisingOS-Generic | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |