Skip to content

Commit 4d1520c

Browse files
author
Zadjad Rezai
committed
feat(ci): Implements CI pipeline
1 parent 7cacb86 commit 4d1520c

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed

.github/workflows/test-update.yml

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,49 @@
22

33
name: Test LinuxUpdate
44

5-
# Controls when the action will run.
5+
# Controls when the action will run.
66
on:
7-
# Triggers the workflow on push or pull request events but only for the master branch
87
push:
9-
branches: [ master ]
8+
branches: [master]
109
pull_request:
11-
branches: [ master ]
10+
branches: [master]
1211

13-
# Allows you to run this workflow manually from the Actions tab
14-
workflow_dispatch:
15-
16-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1712
jobs:
18-
# This workflow contains a single job called "build"
19-
build:
20-
# The type of runner that the job will run on
13+
ubuntu_check:
2114
runs-on: ubuntu-latest
2215

23-
# Steps represent a sequence of tasks that will be executed as part of the job
2416
steps:
25-
2617
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2718
- uses: actions/checkout@v2
2819

29-
# Runs a single command using the runners shell
20+
- name: Install prerequisites
21+
run: |
22+
sudo apt update
23+
sudo apt install bash sudo
24+
3025
- name: Run ./LinuxUpdate.sh
3126
run: ./LinuxUpdate.sh
3227

33-
# Runs a set of commands using the runners shell
34-
- name: Done
28+
arch_check:
29+
runs-on: ubuntu-latest
30+
container:
31+
image: archlinux:latest
32+
33+
steps:
34+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35+
- uses: actions/checkout@v2
36+
37+
# https://github.com/qutebrowser/qutebrowser/commit/478e4de7bd1f26bebdcdc166d5369b2b5142c3e2
38+
- name: Workaround glibc issue
39+
run: |
40+
patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
41+
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
42+
bsdtar -C / -xvf "$patched_glibc"
43+
44+
- name: Install prerequisites
3545
run: |
36-
echo Everything worked fine. :)
46+
pacman -Syyu --noconfirm
47+
pacman -S sudo reflector --noconfirm
48+
49+
- name: Run ./LinuxUpdate.sh
50+
run: ./LinuxUpdate.sh

0 commit comments

Comments
 (0)