Skip to content

Commit

Permalink
ci: Attempt to use Arch Linux container
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanViknar committed May 15, 2024
1 parent 235c794 commit 671d46c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/package.yml
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

0 comments on commit 671d46c

Please sign in to comment.