Skip to content

Commit

Permalink
Actions: Unify coding style (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano authored Oct 20, 2023
1 parent a3add50 commit 2642fb6
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 36 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on: [pull_request]

jobs:
flatpak:
name: Flatpak
runs-on: ubuntu-22.04

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 }}
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: spreadsheet.flatpak
manifest-path: com.github.elework.spreadsheet.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-22.04

container:
image: valalang/lint

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

- name: Lint
run: io.elementary.vala-lint -d .
33 changes: 33 additions & 0 deletions .github/workflows/gettext.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Gettext updates

on:
push:
branches: [main]

jobs:
gettext_flatpak:
name: Gettext Flatpak
runs-on: ubuntu-latest

container:
image: ghcr.io/elementary/flatpak-platform/runtime:7.2-x86_64
options: --privileged

steps:
- name: Install git, python3-git and jq
run: |
apt-get update
apt-get install git jq python3-git -y
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_USER_TOKEN }}

- name: Configure Git
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: elementary/actions/gettext-flatpak@main
with:
manifest-path: 'com.github.elework.spreadsheet.yml'
36 changes: 0 additions & 36 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit 2642fb6

Please sign in to comment.