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 12, 2025
1 parent c5937f4 commit c4d50ce
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: 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}}

- name: Install wine
run: sudo apt-get update && sudo apt-get install -y wine

- 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 c4d50ce

Please sign in to comment.