cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

gearboy.yml (2594B)


      1name: Gearboy CI
      2
      3on:
      4  push:
      5  pull_request:
      6  schedule:
      7    - cron: '0 0 * * 0'
      8
      9jobs:
     10  linux:
     11    name: Linux
     12    runs-on: ubuntu-latest
     13    steps:
     14    - name: Checkout
     15      uses: actions/checkout@v2
     16      with:
     17        fetch-depth: 0
     18    - name: Update OS
     19      run: sudo apt-get update -qq
     20    - name: Install dependencies
     21      run: sudo apt-get install -y libsdl2-dev libglew-dev
     22    - name: make
     23      run: make
     24      working-directory: platforms/linux
     25  libretro:
     26    name: Libretro (Ubuntu)
     27    runs-on: ubuntu-latest
     28    steps:
     29    - name: Checkout
     30      uses: actions/checkout@v2
     31      with:
     32        fetch-depth: 0
     33    - name: make
     34      run: make
     35      working-directory: platforms/libretro
     36  ios:
     37    name: iOS
     38    runs-on: macOS-latest
     39    steps:
     40    - name: Checkout
     41      uses: actions/checkout@v2
     42      with:
     43        fetch-depth: 0
     44    - name: xcodebuild
     45      run: xcodebuild clean build -sdk iphonesimulator -project Gearboy.xcodeproj -scheme Gearboy CODE_SIGNING_REQUIRED=NO
     46      working-directory: platforms/ios
     47  macos:
     48    name: macOS
     49    runs-on: macOS-latest
     50    steps:
     51    - name: Checkout
     52      uses: actions/checkout@v2
     53      with:
     54        fetch-depth: 0
     55    - name: Install dependencies
     56      run: brew install sdl2
     57    - name: make
     58      run: make dist
     59      working-directory: platforms/macos
     60    - name: Archive binary
     61      uses: actions/upload-artifact@v2
     62      with:
     63        name: macOS App bundle
     64        path: platforms/macos/Gearboy.app
     65  windows:
     66    name: Windows
     67    runs-on: windows-latest
     68    steps:
     69    - name: Checkout
     70      uses: actions/checkout@v2
     71      with:
     72        fetch-depth: 0
     73    - name: Add msbuild to PATH
     74      uses: microsoft/setup-msbuild@v1.0.2
     75    - name: Get git version
     76      id: gitversion
     77      run: echo "::set-output name=gitversion::$(git describe --abbrev=7 --dirty --always --tags)"
     78    - name: msbuild
     79      run: msbuild Gearboy.sln /t:Clean,Build /p:EmulatorBuild="${{ steps.gitversion.outputs.gitversion }}" /p:Configuration=Release
     80      working-directory: platforms/windows
     81    - name: Archive binary
     82      uses: actions/upload-artifact@v2
     83      with:
     84        name: Windows binary
     85        path: platforms/windows/release/Gearboy.exe
     86  bsd:
     87    name: FreeBSD
     88    runs-on: macos-10.15
     89    steps:
     90    - name: Checkout
     91      uses: actions/checkout@v2
     92      with:
     93        fetch-depth: 0
     94    - name: make
     95      id: test
     96      uses: vmactions/freebsd-vm@v0.1.5
     97      with:
     98        usesh: true
     99        prepare: pkg install -y git gmake pkgconf SDL2 glew lang/gcc
    100        run: |
    101          cd platforms/bsd
    102          gmake
    103