Update Main.hx #308
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: Testing | |
on: | |
push: | |
branches: main | |
paths-ignore: | |
- '.github/workflows/clang-formatter.yml' | |
- 'project/discord-rpc/.clang-format' | |
- 'LICENSE' | |
- 'README.md' | |
- 'haxelib.json' | |
- 'hxformat.json' | |
workflow_dispatch: | |
jobs: | |
Job: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: true | |
- name: Setup Haxe | |
uses: krdlab/setup-haxe@master | |
with: | |
haxe-version: latest | |
- name: Install Dependencies | |
run: | | |
haxelib install hxcpp --quiet | |
haxelib dev hxdiscord_rpc . | |
- name: Build Unix | |
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') | |
run: cd sample && haxe build-unix.hxml | |
- name: Build Windows | |
if: startsWith(matrix.os, 'windows') | |
run: cd sample && haxe build-win.hxml |