-
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 1.24 KB
/
build.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
57
58
59
60
name: "Build"
on:
push:
branches:
- '*'
paths:
- '*.sh'
- '.github/workflows/build.yml'
- '*.txt'
- 'conf/*'
- 'hooks/*'
pull_request:
branches:
- '*'
paths:
- '*.sh'
- '.github/workflows/build.yml'
- '*.txt'
- 'conf/*'
- 'hooks/*'
workflow_dispatch:
release:
types: [ created ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: ["9.0", "9.1", "9.2", "9.3"]
runs-on: ubuntu-22.04
env:
SEC_VBOX : ${{ secrets.SEC_VBOX }}
steps:
- uses: actions/checkout@v3
- name: Creating Web console
uses: vmactions/cf-tunnel@v0
id: tunnel
with:
protocol: http
port: 8000
- run: |
bash build.sh conf/netbsd-${{ matrix.os }}.conf
- name: Upload Release Asset
if: "contains(github.ref, 'refs/tags/')"
id: upload-release-asset
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
netbsd-${{ matrix.os }}.qcow2.xz
netbsd-${{ matrix.os }}-id_rsa.pub
netbsd-${{ matrix.os }}-host.id_rsa