Skip to content

Commit

Permalink
Try gettext-flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
tintou committed Oct 17, 2023
1 parent 9995c4a commit 30d26ea
Showing 1 changed file with 23 additions and 48 deletions.
71 changes: 23 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,33 @@
name: CI

on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches: [ tintou/test-gettext-flatpak ]

jobs:
flatpak:
name: Flatpak
gettext:
name: Gettext
runs-on: ubuntu-latest

strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false

container:
image: ghcr.io/elementary/flatpak-platform/runtime:7.2-${{ matrix.arch }}
image: ghcr.io/elementary/flatpak-platform/runtime:7.2-x86_64
options: --privileged

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU for aarch64 emulation
if: ${{ matrix.arch != 'x86_64' }}
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Build
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: capnet-assist.flatpak
manifest-path: io.elementary.capnet-assist.yml
run-tests: true
repository-name: appcenter
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
cache-key: "flatpak-builder-${{ github.sha }}"
arch: ${{ matrix.arch }}

lint:
name: Lint
runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint
run: io.elementary.vala-lint -d .
- name: Install git and jq
run: |
apt-get update
apt-get install git jq -y
- name: configure Git
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_USER_TOKEN }}

- name: Update Translation Files
uses: elementary/actions/gettext-flatpak@tintou/gettext-flatpak
with:
manifest-path: 'io.elementary.capnet-assist.yml'

0 comments on commit 30d26ea

Please sign in to comment.