feat: add ci to test compiling script #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 :99 -screen 0 1024x768x24 +extension GLX +render -noreset & | |
- name: Install .NET Runtime 6.36 | |
run: DISPLAY=:99 wine ${{env.RATOOLS_DIR}}/dotnet-runtime.exe /install /silent | |
- 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 |