Skip to content

Commit

Permalink
Merge pull request #164 from ryonakano/switch-to-github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions for CI building
  • Loading branch information
be1 authored Sep 23, 2024
2 parents 925e4df + b931be4 commit 73e3f93
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 25 deletions.
39 changes: 38 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,43 @@ name: CI
on: [push, pull_request]

jobs:

flatpak:

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:8-${{ matrix.arch }}
options: --privileged

steps:
- 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: agenda.flatpak
manifest-path: com.github.dahenson.agenda.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:

runs-on: ubuntu-latest
Expand All @@ -11,6 +48,6 @@ jobs:
image: valalang/lint

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Lint
run: io.elementary.vala-lint -d ./src/
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

0 comments on commit 73e3f93

Please sign in to comment.