forked from OpenRCT2/OpenRCT2
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 2.11 KB
/
main.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
on:
push:
branches:
- develop
jobs:
job1:
runs-on: ubuntu-latest # NOTE: both orka-actions-up and orka-actions-down run on `ubuntu-latest`
steps:
- name: Launch VM
id: job1
uses: cjflan/orka-actions-up@v1
with:
orkaUser: ${{ secrets.ORKA_USER }}
orkaPass: ${{ secrets.ORKA_PASS }}
orkaBaseImage: gha-agent.img # NOTE: this `.img` file is the agent that has been defined in Orka
githubPat: ${{ secrets.GH_PAT }}
vpnUser: ${{ secrets.VPN_USER }}
vpnPassword: ${{ secrets.VPN_PASSWORD }}
vpnAddress: ${{ secrets.VPN_ADDRESS }}
vpnServerCert: ${{ secrets.VPN_SERVER_CERT }}
vcpuCount: 6
coreCount: 6
outputs:
vm-name: ${{ steps.job1.outputs.vm-name }}
job2: # NOTE: this is where your macOS-based, GitHub Actions workflow will be executed.
needs: job1
runs-on: [self-hosted, "${{ needs.job1.outputs.vm-name }}"] # NOTE: this section of the workflow can contain any number of seperate jobs,
steps: # but each must have this `runs-on` value.
- name: Build OpenRCT2
id: job2
run: uname -a
#rm -rf OpenRCT2
#git clone https://github.com/cjflan/OpenRCT2.git
#cd OpenRCT2
#mkdir build
#cd build
#/usr/local/bin/cmake ..
# /usr/bin/make
job3:
if: always()
needs: [job1, job2] # NOTE: all jobs you wish to run on the macOS instance,
runs-on: ubuntu-latest # along with the `orka-actions-up` job, must be listed here.
steps:
- name: Tear Down VM
id: job3
uses: cjflan/orka-actions-down@v1
with:
orkaUser: ${{ secrets.ORKA_USER }}
orkaPass: ${{ secrets.ORKA_PASS }}
githubPat: ${{ secrets.GH_PAT }}
vpnUser: ${{ secrets.VPN_USER }}
vpnPassword: ${{ secrets.VPN_PASSWORD }}
vpnAddress: ${{ secrets.VPN_ADDRESS }}
vpnServerCert: ${{ secrets.VPN_SERVER_CERT }}
vmName: ${{ needs.job1.outputs.vm-name }}