summaryrefslogtreecommitdiff
path: root/.github/workflows/arch-build-git.yml
blob: 24105811f80c2aa05cd53ddc1f3537ce68097028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Check git build for Arch.

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  arch-build-git:
    container: archlinux:latest
    runs-on: ubuntu-latest

    steps:
      # It is necessary to checkout into sub-directory, because of some weird ownership problems cause by using containers
      - name: Check out sources
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
          path: swayfx

      - name: Git makepkg build and check
        id: makepkg
        uses: edlanglois/pkgbuild-action@v1
        with:
          pkgdir: ./swayfx/build-scripts/aur-git