|
| 1 | +name: Dolphin-libretro Windows x86_64 |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + watch: # this is a hack that lets repo owners trigger a build by starring |
| 8 | + types: [started] |
| 9 | + if: github.actor == github.event.repository.owner.login |
| 10 | + |
| 11 | +jobs: |
| 12 | + Windows: |
| 13 | + name: Build for Windows |
| 14 | + runs-on: windows-latest |
| 15 | + |
| 16 | + steps: |
| 17 | + - name: Get latest CMake |
| 18 | + uses: lukka/get-cmake@latest |
| 19 | + - name: Checkout source |
| 20 | + run: git clone https://github.com/libretro/dolphin.git && cd dolphin && git submodule update --init |
| 21 | + - name: Build libretro dolphin core |
| 22 | + working-directory: dolphin |
| 23 | + run: mkdir build && cd build && cmake.exe -DLIBRETRO=ON -DENABLE_QT=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON .. |
| 24 | + |
| 25 | + - name: Build the thing |
| 26 | + working-directory: dolphin/build |
| 27 | + run: cmake.exe --build . --target dolphin_libretro --config Release |
| 28 | + |
| 29 | + - name: Prep for release |
| 30 | + working-directory: dolphin/Binary |
| 31 | + run: Compress-Archive -CompressionLevel Optimal -Path dolphin_libretro.dll -DestinationPath ..\..\dolphin_libretro.dll.zip |
| 32 | + - name: Create new release |
| 33 | + uses: marvinpinto/action-automatic-releases@latest |
| 34 | + with: |
| 35 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 36 | + automatic_release_tag: Windows_64-bit |
| 37 | + prerelease: false |
| 38 | + title: Windows x86_64 |
| 39 | + files: dolphin_libretro.dll.zip |
| 40 | + - name: Save artifact |
| 41 | + uses: actions/upload-artifact@v2 |
| 42 | + with: |
| 43 | + name: dolphin_libretro.dll.zip |
| 44 | + path: dolphin_libretro.dll.zip |
0 commit comments