2020-05-17 13:00:26 +00:00
|
|
|
name: Create rolling release
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2020-07-14 11:26:48 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'appveyor.yml'
|
|
|
|
- 'scripts/*'
|
2020-05-17 13:00:26 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-07-14 11:26:48 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'appveyor.yml'
|
|
|
|
- 'scripts/*'
|
2020-07-13 21:33:38 +00:00
|
|
|
workflow_dispatch:
|
2020-05-17 13:00:26 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
windows-build:
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
2020-07-01 06:00:07 +00:00
|
|
|
- uses: actions/checkout@v2.3.1
|
2020-05-17 13:00:26 +00:00
|
|
|
with:
|
2020-07-01 06:00:07 +00:00
|
|
|
fetch-depth: 0
|
2020-05-17 13:00:26 +00:00
|
|
|
submodules: true
|
|
|
|
|
2020-08-06 12:11:08 +00:00
|
|
|
- name: Tag as release build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
echo #pragma once > src/scmversion/tag.h
|
|
|
|
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
|
|
|
|
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
|
|
|
|
|
2020-05-17 13:00:26 +00:00
|
|
|
- name: Compile release build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
|
|
msbuild duckstation.sln -t:Build -p:Platform=x64;Configuration=ReleaseLTCG
|
|
|
|
|
|
|
|
- name: Remove extra bloat before archiving
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
del /Q bin\x64\*.pdb
|
|
|
|
del /Q bin\x64\*.exp
|
|
|
|
del /Q bin\x64\*.lib
|
|
|
|
del /Q bin\x64\*.iobj
|
|
|
|
del /Q bin\x64\*.ipdb
|
|
|
|
del /Q bin\x64\common-tests*
|
2020-07-07 09:14:00 +00:00
|
|
|
del /Q bin\x64\duckstation-libretro-*
|
2020-08-06 09:35:33 +00:00
|
|
|
rename bin\x64\updater-x64-ReleaseLTCG.exe updater.exe
|
2020-07-07 09:14:00 +00:00
|
|
|
|
|
|
|
- name: Create release archive
|
2020-06-30 16:35:26 +00:00
|
|
|
shell: cmd
|
|
|
|
run: |
|
2020-08-06 09:35:52 +00:00
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-x64-release.zip ./bin/x64/*
|
2020-06-30 16:35:26 +00:00
|
|
|
|
|
|
|
- name: Upload release artifact
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "windows-x64"
|
2020-08-06 10:11:04 +00:00
|
|
|
path: "duckstation-windows-x64-release.zip"
|
2020-06-30 16:35:26 +00:00
|
|
|
|
2020-07-07 09:14:00 +00:00
|
|
|
|
|
|
|
windows-libretro-build:
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Compile release build
|
2020-05-17 13:00:26 +00:00
|
|
|
shell: cmd
|
|
|
|
run: |
|
2020-07-07 09:14:00 +00:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON -DCMAKE_C_COMPILER:FILEPATH="%VCToolsInstallDir%\bin\HostX64\x64\cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="%VCToolsInstallDir%\bin\HostX64\x64\cl.exe" ..
|
|
|
|
ninja
|
|
|
|
|
|
|
|
- name: Create libretro core archive
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r duckstation_libretro.dll.zip ./duckstation_libretro.dll
|
2020-05-17 13:00:26 +00:00
|
|
|
|
|
|
|
- name: Upload release artifact
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-07-07 09:14:00 +00:00
|
|
|
name: "windows-libretro-x64"
|
|
|
|
path: "build/duckstation_libretro.dll.zip"
|
2020-05-17 13:00:26 +00:00
|
|
|
|
2020-07-05 02:58:04 +00:00
|
|
|
|
2020-08-15 03:31:28 +00:00
|
|
|
linux-build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install cmake ninja-build ccache libsdl2-dev libgtk2.0-dev qtbase5-dev qtbase5-dev-tools qtbase5-private-dev qt5-default qttools5-dev
|
|
|
|
|
|
|
|
- name: Compile build
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SDL_FRONTEND=ON -DBUILD_QT_FRONTEND=ON -DUSE_SDL2=ON -G Ninja ..
|
|
|
|
ninja
|
|
|
|
../appimage/generate-appimages.sh $(pwd)
|
|
|
|
|
|
|
|
- name: Upload SDL AppImage
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-sdl"
|
|
|
|
path: "build/duckstation-sdl-x64.AppImage"
|
|
|
|
|
|
|
|
- name: Upload SDL AppImage zsync
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-sdl-zsync"
|
|
|
|
path: "build/duckstation-sdl-x64.AppImage.zsync"
|
|
|
|
|
|
|
|
- name: Upload Qt AppImage
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-qt"
|
|
|
|
path: "build/duckstation-qt-x64.AppImage"
|
|
|
|
|
|
|
|
- name: Upload Qt AppImage zsync
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-qt-zsync"
|
|
|
|
path: "build/duckstation-qt-x64.AppImage.zsync"
|
2020-05-23 09:57:50 +00:00
|
|
|
|
2020-07-05 02:58:04 +00:00
|
|
|
|
|
|
|
linux-libretro-build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2020-08-18 14:08:17 +00:00
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
|
|
|
|
2020-07-08 16:18:49 +00:00
|
|
|
- name: Compile and zip Linux x64 libretro core
|
2020-07-05 02:58:04 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-07-08 16:18:49 +00:00
|
|
|
mkdir build-libretro-linux-x64
|
|
|
|
cd build-libretro-linux-x64
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON ..
|
|
|
|
cmake --build . --parallel 2
|
2020-08-18 14:08:17 +00:00
|
|
|
zip -j duckstation_libretro_x64.so.zip duckstation_libretro.so
|
2020-07-05 02:58:04 +00:00
|
|
|
|
2020-07-08 16:18:49 +00:00
|
|
|
- name: Upload Linux x64 libretro core
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-libretro"
|
2020-08-18 14:08:17 +00:00
|
|
|
path: "build-libretro-linux-x64/duckstation_libretro_x64.so.zip"
|
|
|
|
|
|
|
|
- name: Compile and zip Linux AArch64 libretro core
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build-libretro-linux-aarch64
|
|
|
|
cd build-libretro-linux-aarch64
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON -DCMAKE_TOOLCHAIN_FILE=../CMakeModules/aarch64-cross-toolchain.cmake ..
|
|
|
|
cmake --build . --parallel 2
|
|
|
|
zip -j duckstation_libretro_linux_aarch64.so.zip duckstation_libretro.so
|
|
|
|
|
|
|
|
- name: Upload Linux AArch64 libretro core
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-libretro"
|
|
|
|
path: "build-libretro-linux-aarch64/duckstation_libretro_linux_aarch64.so.zip"
|
2020-06-30 16:35:26 +00:00
|
|
|
|
2020-07-08 16:18:49 +00:00
|
|
|
- name: Compile and zip Android AArch64 libretro core
|
2020-06-30 16:35:26 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-07-08 16:18:49 +00:00
|
|
|
mkdir build-libretro-android-aarch64
|
|
|
|
cd build-libretro-android-aarch64
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON -DANDROID_ABI=arm64-v8a -DCMAKE_TOOLCHAIN_FILE=${ANDROID_SDK_ROOT}/ndk-bundle/build/cmake/android.toolchain.cmake ..
|
|
|
|
cmake --build . --parallel 2
|
|
|
|
zip -j duckstation_libretro_android_aarch64.so.zip duckstation_libretro_android.so
|
2020-06-30 16:35:26 +00:00
|
|
|
|
2020-07-08 16:18:49 +00:00
|
|
|
- name: Upload Android AArch64 libretro core
|
2020-06-30 16:35:26 +00:00
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-07-08 16:18:49 +00:00
|
|
|
name: "linux-libretro"
|
|
|
|
path: "build-libretro-android-aarch64/duckstation_libretro_android_aarch64.so.zip"
|
2020-07-05 02:58:04 +00:00
|
|
|
|
|
|
|
|
2020-07-11 15:06:15 +00:00
|
|
|
android-build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Compile with Gradle
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd android
|
|
|
|
./gradlew assembleRelease
|
2020-07-12 16:18:01 +00:00
|
|
|
|
|
|
|
- name: Sign APK
|
2020-08-10 17:07:56 +00:00
|
|
|
if: github.ref == 'refs/heads/master'
|
2020-07-12 16:18:01 +00:00
|
|
|
uses: r0adkll/sign-android-release@v1
|
|
|
|
with:
|
|
|
|
releaseDirectory: android/app/build/outputs/apk/release
|
|
|
|
signingKeyBase64: ${{ secrets.APK_SIGNING_KEY }}
|
|
|
|
alias: ${{ secrets.APK_KEY_ALIAS }}
|
|
|
|
keyStorePassword: ${{ secrets.APK_KEY_STORE_PASSWORD }}
|
|
|
|
keyPassword: ${{ secrets.APK_KEY_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Rename APK
|
2020-08-10 17:07:56 +00:00
|
|
|
if: github.ref == 'refs/heads/master'
|
2020-07-12 16:18:01 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd android
|
|
|
|
mv app/build/outputs/apk/release/app-release-unsigned-signed.apk ../duckstation-android-aarch64.apk
|
|
|
|
|
2020-07-11 15:06:15 +00:00
|
|
|
- name: Upload APK
|
2020-08-10 17:07:56 +00:00
|
|
|
if: github.ref == 'refs/heads/master'
|
2020-07-11 15:06:15 +00:00
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "android"
|
2020-07-12 16:18:01 +00:00
|
|
|
path: "duckstation-android-aarch64.apk"
|
2020-07-11 15:06:15 +00:00
|
|
|
|
2020-08-25 12:05:05 +00:00
|
|
|
macos-build:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
brew install qt5 sdl2
|
|
|
|
|
|
|
|
- name: Clone mac externals
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/stenzek/duckstation-ext-mac.git dep/mac
|
|
|
|
|
|
|
|
- name: Compile build
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SDL_FRONTEND=OFF -DBUILD_QT_FRONTEND=ON -DUSE_SDL2=ON -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 ..
|
|
|
|
cmake --build . --parallel 2
|
|
|
|
|
|
|
|
- name: Zip macOS .app
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd build/bin
|
|
|
|
zip -r duckstation-mac-release.zip DuckStation.app/
|
|
|
|
|
|
|
|
- name: Upload macOS .app
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "macos-x64"
|
|
|
|
path: "build/bin/duckstation-mac-release.zip"
|
|
|
|
|
2020-07-11 15:06:15 +00:00
|
|
|
|
2020-05-17 13:00:26 +00:00
|
|
|
create-release:
|
2020-08-25 12:05:05 +00:00
|
|
|
needs: [windows-build, windows-libretro-build, linux-build, linux-libretro-build, android-build, macos-build]
|
2020-05-17 13:00:26 +00:00
|
|
|
runs-on: "ubuntu-latest"
|
2020-06-02 03:10:45 +00:00
|
|
|
if: github.ref == 'refs/heads/master'
|
2020-05-17 13:00:26 +00:00
|
|
|
steps:
|
|
|
|
- name: Download Windows x64 Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "windows-x64"
|
|
|
|
|
2020-07-07 09:14:00 +00:00
|
|
|
- name: Download Windows libretro x64 Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "windows-libretro-x64"
|
|
|
|
|
2020-08-15 03:31:28 +00:00
|
|
|
- name: Download SDL AppImage Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-sdl"
|
|
|
|
|
|
|
|
- name: Download SDL AppImage zsync Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-sdl-zsync"
|
|
|
|
|
|
|
|
- name: Download Qt AppImage Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-qt"
|
|
|
|
|
|
|
|
- name: Download Qt AppImage zsync Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-qt-zsync"
|
2020-05-23 09:57:50 +00:00
|
|
|
|
2020-06-30 16:35:26 +00:00
|
|
|
- name: Download Linux libretro core
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
2020-07-08 16:18:49 +00:00
|
|
|
name: "linux-libretro"
|
2020-06-30 16:35:26 +00:00
|
|
|
|
2020-07-11 15:06:15 +00:00
|
|
|
- name: Download Android APK
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "android"
|
|
|
|
|
2020-08-25 12:05:05 +00:00
|
|
|
- name: Download Mac App
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "macos-x64"
|
|
|
|
|
2020-05-17 13:00:26 +00:00
|
|
|
- name: Create release
|
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
title: "Latest Development Build"
|
|
|
|
files: |
|
2020-08-06 10:11:04 +00:00
|
|
|
windows-x64/duckstation-windows-x64-release.zip
|
2020-07-07 09:14:00 +00:00
|
|
|
windows-libretro-x64/duckstation_libretro.dll.zip
|
2020-08-15 03:31:28 +00:00
|
|
|
linux-x64-appimage-sdl/duckstation-sdl-x64.AppImage
|
|
|
|
linux-x64-appimage-sdl-zsync/duckstation-sdl-x64.AppImage.zsync
|
|
|
|
linux-x64-appimage-qt/duckstation-qt-x64.AppImage
|
|
|
|
linux-x64-appimage-qt-zsync/duckstation-qt-x64.AppImage.zsync
|
2020-08-18 14:08:17 +00:00
|
|
|
linux-libretro/duckstation_libretro_x64.so.zip
|
|
|
|
linux-libretro/duckstation_libretro_linux_aarch64.so.zip
|
2020-07-08 16:18:49 +00:00
|
|
|
linux-libretro/duckstation_libretro_android_aarch64.so.zip
|
2020-07-12 16:18:01 +00:00
|
|
|
android/duckstation-android-aarch64.apk
|
2020-08-25 12:05:05 +00:00
|
|
|
macos-x64/duckstation-mac-release.zip
|
2020-07-11 15:06:15 +00:00
|
|
|
|