-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Attempt to use Arch Linux container
- Loading branch information
1 parent
235c794
commit 671d46c
Showing
1 changed file
with
11 additions
and
10 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 |
---|---|---|
@@ -1,33 +1,34 @@ | ||
name: zip-generation | ||
name: zip-packaging | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
generate-zip: | ||
create-zip-package: | ||
runs-on: ubuntu-latest | ||
|
||
container: # We use the latest Arch Linux image, as we need the latest version of blueprint-compiler. | ||
image: ghcr.io/archlinux/archlinux:latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download blueprint-compiler from source | ||
run: git clone https://gitlab.gnome.org/jwestman/blueprint-compiler | ||
|
||
- name: Install dependencies | ||
run: sudo apt install -y gobject-introspection blueprint-compiler | ||
|
||
- name: Run blueprint-compiler manually | ||
run: mkdir dist && python3 ./blueprint-compiler/blueprint-compiler.py compile ui/prefs.blp > dist/prefs.ui | ||
run: pacman -Syu --noconfirm blueprint-compiler npm typescript gobject-introspection libadwaita make zip | ||
|
||
- name: Build & Package Noiseclapper | ||
run: make pack | ||
|
||
- name: Extract current branch name | ||
id: branch-name | ||
uses: tj-actions/branch-names@v7 | ||
|
||
- name: Format branch name # Avoids GitHub Actions panicking about / characters in artifact names. | ||
id: format-branch-name | ||
run: echo "formatted_branch=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr -s '/' '-')" >> $GITHUB_OUTPUT | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: noiseclapper-artifacts-${{ steps.branch-name.outputs.current_branch }} | ||
name: noiseclapper-artifacts-${{ steps.format-branch-name.outputs.formatted_branch }} | ||
path: Noiseclapper@JordanViknar.zip |