From 00c9b4a611ff85c9d0eecd94c15fed64edfc3eff Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 29 Oct 2023 15:43:19 -0400 Subject: [PATCH] ci: Add job to check PKGBUILD --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c591331..97b7f56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: cargo +name: ci on: push: @@ -12,22 +12,36 @@ env: jobs: build: + name: cargo build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: cargo build test: + name: cargo test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: cargo test format: + name: cargo fmt --check runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: cargo fmt --check clippy: + name: cargo clippy runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: cargo clippy + pkgbuild: + name: makepkg -si + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - id: makepkg + uses: edlanglois/pkgbuild-action@v1 + - run: | + echo "Successfully created the following package archive" + echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}"