mirror of
https://github.com/Jguer/yay
synced 2024-09-16 06:39:53 +00:00
fix(ci): do not install packages at pacman-git CI level (#1860)
* fix(ci): do not attempt to install extra packages for building pacman-git * install needed in ci image * fix missing pacman key * wip * add missing deps
This commit is contained in:
parent
f8e7891b0b
commit
0b1ae938a3
4
.github/workflows/testing-git.yml
vendored
4
.github/workflows/testing-git.yml
vendored
|
@ -24,12 +24,10 @@ jobs:
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
- name: checkout pacman-git
|
- name: checkout pacman-git
|
||||||
run: |
|
run: |
|
||||||
pacman -Sy --overwrite=* --noconfirm archlinux-keyring
|
|
||||||
pacman -Su --overwrite=* --noconfirm sudo base-devel
|
|
||||||
git clone https://aur.archlinux.org/pacman-git
|
git clone https://aur.archlinux.org/pacman-git
|
||||||
useradd github
|
useradd github
|
||||||
chmod -R 777 pacman-git
|
|
||||||
echo 'github ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
echo 'github ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
chmod -R 777 pacman-git
|
||||||
su github -c 'cd pacman-git; yes | makepkg -si --nocheck'
|
su github -c 'cd pacman-git; yes | makepkg -si --nocheck'
|
||||||
- name: Run Build and Tests with pacman-git
|
- name: Run Build and Tests with pacman-git
|
||||||
run: make test
|
run: make test
|
||||||
|
|
|
@ -5,8 +5,8 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
|
|
||||||
RUN pacman -Sy && pacman -S --overwrite=* --noconfirm archlinux-keyring && \
|
RUN pacman-key --init && pacman -Sy && pacman -S --overwrite=* --noconfirm archlinux-keyring && \
|
||||||
pacman -Su --overwrite=* --needed --noconfirm go git gcc make && \
|
pacman -Su --overwrite=* --needed --noconfirm doxygen meson asciidoc go git gcc make sudo base-devel && \
|
||||||
rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* && \
|
rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* && \
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1 && \
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1 && \
|
||||||
go mod download
|
go mod download
|
||||||
|
|
Loading…
Reference in a new issue