diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..8502aa3 --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 \ No newline at end of file