-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ci to test compiling script
- Loading branch information
1 parent
c5937f4
commit ed233d7
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
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 |