-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (49 loc) · 1.96 KB
/
test.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
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "**" ]
permissions:
contents: write
pull-requests: write
jobs:
compile:
name: compile
runs-on: ubuntu-latest
env:
RATOOLS_VERSION: v1.15.0
RALIBRETRO_DIR: ~/Installs/RALibretro-x64 # same as Makefile
steps:
- name: Checkout repo
uses: actions/checkout@v4
# - name: Setup dotnet
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 6.0.x
# - run: dotnet --info
- name: Set ENV vars for github
run: echo "RATOOLS_DIR=~/Installs/RATools-${{env.RATOOLS_VERSION}}" >> $GITHUB_ENV # same as Makefile
- name: Create folders
run: mkdir -p ${{env.RATOOLS_DIR}} && mkdir -p ${{env.RALIBRETRO_DIR}}/RACache/Data
- name: Install wine
run: sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install -y wine wine32 xvfb
- name: Get .NET Runtime 6.36
run: wget -O ${{env.RATOOLS_DIR}}/dotnet-runtime.exe "https://download.visualstudio.microsoft.com/download/pr/1a5fc50a-9222-4f33-8f73-3c78485a55c7/1cb55899b68fcb9d98d206ba56f28b66/dotnet-runtime-6.0.36-win-x64.exe"
- name: Set Winecfg
run: winecfg /v win10
- name: Install .NET Runtime 6.36
run: |
Xvfb :0 -screen 0 1024x768x16 &
pgid=$!
sleep 3
DISPLAY=:0.0 wine ~/Downloads/dotnet-runtime-6.0.36-win-x64.exe /install /silent
sleep 3
kill -9 $pgid
- run: dotnet --info
- name: Get RATools CLI
run: wget -O ${{env.RATOOLS_DIR}}/RATools-${{env.RATOOLS_VERSION}}.zip "https://github.com/Jamiras/RATools/releases/download/${{env.RATOOLS_VERSION}}/RATools-${{env.RATOOLS_VERSION}}.zip"
- name: Unpack RATools
run: unzip ${{env.RATOOLS_DIR}}/RATools-${{env.RATOOLS_VERSION}}.zip -d ${{env.RATOOLS_DIR}}
- name: Compile code
run: make compile