fix(ci): fix builds against pacman-git (#1718)
* fix(ci): fix builds against pacman-git * fix(ci): fix builds against pacman-git * update dockerfile * update dockerfile * update dockerfile * fix(ci): fix builds against pacman-git * fix(ci): fix builds against pacman-git * update go-alpm * update alpm * return to lopsided images * go mod tidy
This commit is contained in:
1 parent
b52e3cf0d2
commit
dc9bef0115
6 files changed
+46
-24
No files matched your search
@@ -0,0 +1,37 @@
|
||||
name: Test against pacman-git
|
||||
# This workflow is triggered on pushes to the repository.
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- "doc/**"
|
||||
- "README.md"
|
||||
- ".gitignore"
|
||||
branches-ignore:
|
||||
- "master"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Lint and test yay
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: jguer/yay-builder:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
- name: checkout pacman-git
|
||||
run: |
|
||||
pacman -Syu --overwrite=* --noconfirm sudo base-devel
|
||||
git clone https://aur.archlinux.org/pacman-git
|
||||
useradd github
|
||||
chmod -R 777 pacman-git
|
||||
echo 'github ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||
su github -c 'cd pacman-git; yes | makepkg -si --nocheck'
|
||||
- name: Run Build and Tests with pacman-git
|
||||
run: make test
|
||||
Reference in new issue
Block a user