-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (90 loc) · 2.46 KB
/
build.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
name: Install platforms
on:
push:
paths:
- 'install.sh'
- '.github/workflows/build.yaml'
env:
CONTAINER_HOME: '/github/home/work/configs/configs'
jobs:
ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Checking out our code
uses: actions/checkout@master
with:
path: github.com/configs
- name: Run installer
run: |
cd github.com/configs
./install.sh --all
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
macos:
runs-on: macos-latest
steps:
- name: Checking out our code
uses: actions/checkout@master
with:
path: github.com/configs
- name: Run installer
run: |
cd github.com/configs
./install.sh --all
### Some OS installations need to be run in containers
alpine:
runs-on: ubuntu-latest
container:
image: alpine:3.15
volumes:
# mount our configs into the correct path in the container
- /home/runner/work/configs/configs/:/github/home/work/configs/configs
steps:
- name: Checking out our code
uses: actions/checkout@master
with:
path: github.com/configs
- name: Run installer
env:
CI: true
run: |
apk add --no-cache bash
cd ${CONTAINER_HOME}/github.com/configs
./install.sh --all
archlinux:
runs-on: ubuntu-latest
container:
image: archlinux:base
volumes:
# mount our configs into the correct path in the container
- /home/runner/work/configs/configs/:/github/home/work/configs/configs
steps:
- name: Checking out our code
uses: actions/checkout@master
with:
path: github.com/configs
- name: Run installer
env:
CI: true
run: |
cd /github/home/work/configs/configs/github.com/configs
./install.sh --all
debian:
runs-on: ubuntu-latest
container:
image: debian:bullseye
volumes:
# mount our configs into the correct path in the container
- /home/runner/work/configs/configs/:/github/home/work/configs/configs
steps:
- name: Checking out our code
uses: actions/checkout@master
with:
path: github.com/configs
- name: Run installer
env:
CI: true
run: |
cd /github/home/work/configs/configs/github.com/configs
./install.sh --all