|
2 | 2 |
|
3 | 3 | name: Test LinuxUpdate |
4 | 4 |
|
5 | | -# Controls when the action will run. |
| 5 | +# Controls when the action will run. |
6 | 6 | on: |
7 | | - # Triggers the workflow on push or pull request events but only for the master branch |
8 | 7 | push: |
9 | | - branches: [ master ] |
| 8 | + branches: [master] |
10 | 9 | pull_request: |
11 | | - branches: [ master ] |
| 10 | + branches: [master] |
12 | 11 |
|
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 |
17 | 12 | 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: |
21 | 14 | runs-on: ubuntu-latest |
22 | 15 |
|
23 | | - # Steps represent a sequence of tasks that will be executed as part of the job |
24 | 16 | steps: |
25 | | - |
26 | 17 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
27 | 18 | - uses: actions/checkout@v2 |
28 | 19 |
|
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 | +
|
30 | 25 | - name: Run ./LinuxUpdate.sh |
31 | 26 | run: ./LinuxUpdate.sh |
32 | 27 |
|
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 |
35 | 45 | 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