-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.68 KB
/
ci.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
---
name: PR tests
on:
pull_request_target:
branches:
- current
types:
- opened
- synchronize
- reopened
jobs:
Build:
name: "Build against Slackware 15"
runs-on: ubuntu-22.04
container:
image: aclemons/slackware:latest-full
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Slackware 15.0 vs my -current
run: |
( cd /tmp
COMMIT=${COMMIT:-b721b4f35e06ece50888965af5a7642013de58a2}
mkdir init && cd init
wget -c https://raw.githubusercontent.com/RSKYS/SBo-git/$COMMIT/system/sbotools/sbotools.SlackBuild \
https://raw.githubusercontent.com/RSKYS/SBo-git/$COMMIT/system/sbotools/sbotools.info \
https://raw.githubusercontent.com/RSKYS/SBo-git/$COMMIT/system/sbotools/slack-desc \
https://raw.githubusercontent.com/RSKYS/SBo-git/$COMMIT/system/sbotools/req.diff \
https://raw.githubusercontent.com/RSKYS/SBo-git/$COMMIT/system/sbotools/README
export $( cat sbotools.info | \
grep -E "VERSION=|DOWNLOAD=" | tr -d "\"" )
wget $DOWNLOAD
TAG=red PKGTYPE=txz sh sbotools.SlackBuild
upgradepkg --reinstall --install-new /tmp/sbotools-$VERSION*.t?z
rm -rf {.git*,*}
sbosnap fetch )
( cd /tmp/sbo/repo
CHANGED=$(git diff --name-only remotes/origin/current.. | grep '.SlackBuild')
find */*/ -name "doinst.sh" -exec sed -e '1,$d' {} +
for FILE in $CHANGED; do
BASENAME=$(basename $FILE .SlackBuild)
PKGTYPE=txz \
sboinstall -j3 --reinstall $BASENAME
done )