From b931be43fe3d9da7fade2020eb59a64a93afd13d Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Fri, 20 Sep 2024 00:15:13 +0900 Subject: [PATCH] Use GitHub Actions for CI building --- .github/workflows/main.yml | 39 +++++++++++++++++++++++++++++++++++++- .travis.yml | 24 ----------------------- 2 files changed, 38 insertions(+), 25 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4371d0e..c406bd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 10f9454..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- - -language: node_js - -node_js: - - 10.17.0 - -sudo: required - -services: - - docker - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -install: - - npm i -g @elementaryos/houston - -script: - - houston ci