-
Notifications
You must be signed in to change notification settings - Fork 21
56 lines (45 loc) · 1.3 KB
/
alpm.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Alpm
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Install Packages
run: pacman -Syu rust clang gcc libarchive pkgconf --noconfirm --needed
- name: Checkout
uses: actions/checkout@v2
- name: Format
run: cargo fmt -- --check
working-directory: alpm
- name: Test
run: cargo test --features generate,mtree
working-directory: alpm
test-git:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Install Packages
run: pacman -Syu rust curl clang git base-devel libarchive meson asciidoc doxygen pkgconf fakechroot --noconfirm --needed
- name: Install Pacman-git
run: |
git clone https://aur.archlinux.org/pacman-git
chown -R nobody pacman-git
cd pacman-git
sudo -u nobody makepkg --nocheck
sudo -u nobody makepkg --packagelist > list
yes | pacman -U $(cat list)
- name: Checkout
uses: actions/checkout@v2
- name: Format
run: cargo fmt -- --check
working-directory: alpm
- name: Test
run: cargo test --features generate,git,mtree
working-directory: alpm