-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is no CI/CD currently. This adds a pipeline based on arch docker so it gets build with latest godot. Also publishes on tag creation
- Loading branch information
1 parent
5e2d26f
commit de2bed8
Showing
1 changed file
with
62 additions
and
0 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,62 @@ | ||
name: Build ChimeraOS Installer | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-installer: | ||
name: Build Graphical Installer | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: archlinux:base-devel | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up pacman keyring | ||
run: | | ||
pacman-key --init | ||
pacman-key --populate archlinux | ||
mkdir -p /etc/gnupg && echo "auto-key-retrieve" >> /etc/gnupg/gpg.conf | ||
- name: Install dependencies | ||
run: | | ||
pacman -Syu --noconfirm unzip godot wget git fontconfig | ||
- name: Build ChimeraOS installer | ||
id: build | ||
shell: bash | ||
run: | | ||
godot --version | ||
make build | ||
- name: Upload package artifact | ||
if: github.ref_type == 'tag' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: chimeraos-installer | ||
path: | | ||
build/chimeraos-installer.x86_64 | ||
if-no-files-found: error | ||
|
||
make-release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: build-installer | ||
if: github.ref_type == 'tag' | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: chimeraos-installer | ||
path: '.' | ||
- name: Make release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: ChimeraOS installer | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: false | ||
prerelease: true | ||
fail_on_unmatched_files: true | ||
files: | | ||
chimeraos-installer.x86_64 |