Skip to content

Commit

Permalink
feat: add ci to test compiling script
Browse files Browse the repository at this point in the history
  • Loading branch information
joshraphael committed Jan 13, 2025
1 parent c5937f4 commit ed233d7
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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 apt-get update && sudo apt-get install -y wine winetricks

- run: winetricks -q dotnetdesktop6

- 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

0 comments on commit ed233d7

Please sign in to comment.