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-12-18 06:53:48 +00:00
|
|
|
- '.github/ISSUE_TEMPLATE/*'
|
2020-05-17 13:00:26 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-12-25 02:56:14 +00:00
|
|
|
- dev
|
2020-07-14 11:26:48 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'appveyor.yml'
|
|
|
|
- 'scripts/*'
|
2020-12-18 06:53:48 +00:00
|
|
|
- '.github/ISSUE_TEMPLATE/*'
|
2020-07-13 21:33:38 +00:00
|
|
|
workflow_dispatch:
|
2020-05-17 13:00:26 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
windows-build:
|
2022-03-27 07:01:50 +00:00
|
|
|
runs-on: windows-2022
|
2020-05-17 13:00:26 +00:00
|
|
|
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
|
2023-09-02 05:34:03 +00:00
|
|
|
|
|
|
|
- name: Cache Dependencies
|
|
|
|
id: cache-deps
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
dep/msvc/deps-arm64
|
|
|
|
dep/msvc/deps-x64
|
|
|
|
key: deps ${{ hashFiles('scripts/build-dependencies-windows-arm64.bat', 'scripts/build-dependencies-windows-x64.bat') }}
|
|
|
|
|
|
|
|
- name: Build X64 Dependencies
|
|
|
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
|
|
|
env:
|
|
|
|
DEBUG: 0
|
|
|
|
run: scripts/build-dependencies-windows-x64.bat
|
|
|
|
|
|
|
|
- name: Build ARM64 Dependencies
|
|
|
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
|
|
|
env:
|
|
|
|
DEBUG: 0
|
|
|
|
run: scripts/build-dependencies-windows-arm64.bat
|
2020-05-17 13:00:26 +00:00
|
|
|
|
2020-12-25 02:56:14 +00:00
|
|
|
- name: Tag as preview build
|
2020-12-21 16:18:15 +00:00
|
|
|
if: github.ref == 'refs/heads/master'
|
2020-08-06 12:11:08 +00:00
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
echo #pragma once > src/scmversion/tag.h
|
|
|
|
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
|
2020-12-25 02:56:14 +00:00
|
|
|
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
|
|
|
|
echo #define SCM_RELEASE_TAG "preview" >> src/scmversion/tag.h
|
2020-12-21 16:18:15 +00:00
|
|
|
|
|
|
|
|
2020-12-25 02:56:14 +00:00
|
|
|
- name: Tag as dev build
|
|
|
|
if: github.ref == 'refs/heads/dev'
|
2020-12-21 16:18:15 +00:00
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
echo #pragma once > src/scmversion/tag.h
|
|
|
|
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
|
2020-12-25 02:56:14 +00:00
|
|
|
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
|
2020-12-21 16:18:15 +00:00
|
|
|
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
|
|
|
|
|
2021-10-23 14:10:47 +00:00
|
|
|
- name: Update RC version fields
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
cd src\scmversion
|
|
|
|
call update_rc_version.bat
|
|
|
|
cd ..\..
|
|
|
|
git update-index --assume-unchanged src/duckstation-qt/duckstation-qt.rc
|
|
|
|
git update-index --assume-unchanged src/duckstation-nogui/duckstation-nogui.rc
|
|
|
|
|
2020-11-22 04:05:37 +00:00
|
|
|
- name: Compile x64 release build
|
2020-05-17 13:00:26 +00:00
|
|
|
shell: cmd
|
|
|
|
run: |
|
2022-03-27 07:01:50 +00:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
2020-05-17 13:00:26 +00:00
|
|
|
msbuild duckstation.sln -t:Build -p:Platform=x64;Configuration=ReleaseLTCG
|
|
|
|
|
2021-01-31 06:13:40 +00:00
|
|
|
- name: Create x64 symbols archive
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-x64-release-symbols.zip ./bin/x64/*.pdb
|
|
|
|
|
|
|
|
- name: Upload x64 release symbols artifact
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "windows"
|
|
|
|
path: "duckstation-windows-x64-release-symbols.zip"
|
|
|
|
|
2020-05-17 13:00:26 +00:00
|
|
|
- name: Remove extra bloat before archiving
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2021-06-12 12:43:04 +00:00
|
|
|
del /Q bin\x64\*.pdb bin\x64\*.exp bin\x64\*.lib bin\x64\*.iobj bin\x64\*.ipdb bin\x64\common-tests*
|
2020-08-06 09:35:33 +00:00
|
|
|
rename bin\x64\updater-x64-ReleaseLTCG.exe updater.exe
|
2020-11-22 04:05:37 +00:00
|
|
|
|
|
|
|
- name: Create x64 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
|
|
|
|
2020-11-22 04:05:37 +00:00
|
|
|
- name: Upload x64 release artifact
|
2020-06-30 16:35:26 +00:00
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-11-22 04:05:37 +00:00
|
|
|
name: "windows"
|
2020-08-06 10:11:04 +00:00
|
|
|
path: "duckstation-windows-x64-release.zip"
|
2020-06-30 16:35:26 +00:00
|
|
|
|
2021-01-07 15:11:19 +00:00
|
|
|
|
|
|
|
windows-arm64-build:
|
2022-03-27 07:01:50 +00:00
|
|
|
runs-on: windows-2022
|
2021-01-07 15:11:19 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
|
|
|
|
2023-09-02 05:34:03 +00:00
|
|
|
- name: Cache Dependencies
|
|
|
|
id: cache-deps
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
dep/msvc/deps-arm64
|
|
|
|
dep/msvc/deps-x64
|
|
|
|
key: deps ${{ hashFiles('scripts/build-dependencies-windows-arm64.bat', 'scripts/build-dependencies-windows-x64.bat') }}
|
|
|
|
|
|
|
|
- name: Build X64 Dependencies
|
|
|
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
|
|
|
env:
|
|
|
|
DEBUG: 0
|
|
|
|
run: scripts/build-dependencies-windows-x64.bat
|
|
|
|
|
|
|
|
- name: Build ARM64 Dependencies
|
|
|
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
|
|
|
env:
|
|
|
|
DEBUG: 0
|
|
|
|
run: scripts/build-dependencies-windows-arm64.bat
|
|
|
|
|
2021-01-07 15:11:19 +00:00
|
|
|
- name: Tag as preview build
|
|
|
|
if: github.ref == 'refs/heads/master'
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
echo #pragma once > src/scmversion/tag.h
|
2021-06-30 10:20:18 +00:00
|
|
|
echo #define SCM_RELEASE_ASSET "duckstation-windows-arm64-release.zip" >> src/scmversion/tag.h
|
2021-01-07 15:11:19 +00:00
|
|
|
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
|
|
|
|
echo #define SCM_RELEASE_TAG "preview" >> src/scmversion/tag.h
|
|
|
|
|
|
|
|
- name: Tag as dev build
|
|
|
|
if: github.ref == 'refs/heads/dev'
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
echo #pragma once > src/scmversion/tag.h
|
2021-06-30 10:20:18 +00:00
|
|
|
echo #define SCM_RELEASE_ASSET "duckstation-windows-arm64-release.zip" >> src/scmversion/tag.h
|
2021-01-07 15:11:19 +00:00
|
|
|
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
|
|
|
|
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
|
|
|
|
|
2021-10-23 14:10:47 +00:00
|
|
|
- name: Update RC version fields
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
cd src\scmversion
|
|
|
|
call update_rc_version.bat
|
|
|
|
cd ..\..
|
|
|
|
git update-index --assume-unchanged src/duckstation-qt/duckstation-qt.rc
|
|
|
|
git update-index --assume-unchanged src/duckstation-nogui/duckstation-nogui.rc
|
2021-01-07 15:11:19 +00:00
|
|
|
|
2020-11-22 04:05:37 +00:00
|
|
|
- name: Compile arm64 release build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2022-03-27 07:01:50 +00:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64
|
2020-11-22 04:05:37 +00:00
|
|
|
msbuild duckstation.sln -t:Build -p:Platform=ARM64;Configuration=ReleaseLTCG
|
|
|
|
|
2021-01-31 06:13:40 +00:00
|
|
|
- name: Create arm64 symbols archive
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-arm64-release-symbols.zip ./bin/ARM64/*.pdb
|
|
|
|
|
|
|
|
- name: Upload arm64 release symbols artifact
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "windows-arm64"
|
|
|
|
path: "duckstation-windows-arm64-release-symbols.zip"
|
|
|
|
|
2020-11-22 04:05:37 +00:00
|
|
|
- name: Remove extra bloat before archiving
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2021-06-12 12:43:04 +00:00
|
|
|
del /Q bin\ARM64\*.pdb bin\ARM64\*.exp bin\ARM64\*.lib bin\ARM64\*.iobj bin\ARM64\*.ipdb bin\ARM64\common-tests*
|
2020-11-22 04:05:37 +00:00
|
|
|
rename bin\ARM64\updater-ARM64-ReleaseLTCG.exe updater.exe
|
2021-12-26 22:34:21 +00:00
|
|
|
|
2020-11-22 04:05:37 +00:00
|
|
|
- name: Create arm64 release archive
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-windows-arm64-release.zip ./bin/ARM64/*
|
|
|
|
|
|
|
|
- name: Upload arm64 release artifact
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2021-01-07 15:11:19 +00:00
|
|
|
name: "windows-arm64"
|
2020-11-22 04:05:37 +00:00
|
|
|
path: "duckstation-windows-arm64-release.zip"
|
|
|
|
|
2020-07-07 09:14:00 +00:00
|
|
|
|
2020-08-15 03:31:28 +00:00
|
|
|
linux-build:
|
2023-09-05 12:03:02 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-08-15 03:31:28 +00:00
|
|
|
steps:
|
2023-10-28 11:24:12 +00:00
|
|
|
# Work around https://github.com/actions/runner-images/issues/8659
|
|
|
|
- name: Remove GCC 13 from runner image
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y --allow-downgrades libc6=2.35-0ubuntu3.4 libc6-dev=2.35-0ubuntu3.4 libstdc++6=12.3.0-1ubuntu1~22.04 libgcc-s1=12.3.0-1ubuntu1~22.04
|
|
|
|
|
2020-08-15 03:31:28 +00:00
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-01-13 11:14:19 +00:00
|
|
|
# Workaround for https://github.com/actions/runner-images/issues/675
|
2023-09-05 12:03:02 +00:00
|
|
|
scripts/retry.sh wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
|
|
|
sudo scripts/retry.sh apt-add-repository -n 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main'
|
|
|
|
|
2023-09-02 05:34:03 +00:00
|
|
|
sudo scripts/retry.sh apt-get update &&
|
|
|
|
sudo scripts/retry.sh apt-get -y install \
|
|
|
|
cmake ninja-build ccache libegl1-mesa-dev libevdev-dev libwayland-dev libwayland-egl-backend-dev libxrandr-dev libdbus-1-dev \
|
|
|
|
extra-cmake-modules libcurl4-openssl-dev libssl-dev libasound2-dev libpulse-dev libx11-xcb-dev build-essential git libclang-dev \
|
|
|
|
libclang-11-dev libclang-12-dev patchelf libglib2.0-dev libfontconfig1-dev libharfbuzz-dev libjpeg-dev libpng-dev libfreetype-dev \
|
|
|
|
libinput-dev libxcb-*-dev libxkbcommon-dev libxkbcommon-x11-dev libxrender-dev libwayland-dev libgl1-mesa-dev libegl-dev \
|
2023-09-05 12:03:02 +00:00
|
|
|
libegl1-mesa-dev libgl1-mesa-dev libssl-dev libx11-dev libx11-xcb-dev libfuse2 llvm-16 lld-16 clang-16
|
2020-07-05 02:58:04 +00:00
|
|
|
|
2022-07-21 07:27:32 +00:00
|
|
|
- name: Cache Dependencies
|
|
|
|
id: cache-deps
|
|
|
|
uses: actions/cache@v3
|
2021-06-04 06:49:27 +00:00
|
|
|
with:
|
2022-07-21 07:27:32 +00:00
|
|
|
path: ~/deps
|
|
|
|
key: deps ${{ hashFiles('scripts/build-dependencies.sh') }}
|
2021-06-04 06:49:27 +00:00
|
|
|
|
2022-07-21 07:27:32 +00:00
|
|
|
- name: Build Dependencies
|
|
|
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
|
|
|
run: scripts/build-dependencies.sh
|
2021-06-04 06:49:27 +00:00
|
|
|
|
2023-09-19 13:26:23 +00:00
|
|
|
- name: Tag as preview build
|
|
|
|
if: github.ref == 'refs/heads/master'
|
|
|
|
run: |
|
|
|
|
echo '#pragma once' > src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_ASSET "DuckStation-x64.AppImage"' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h
|
|
|
|
|
|
|
|
- name: Tag as dev build
|
|
|
|
if: github.ref == 'refs/heads/dev'
|
|
|
|
run: |
|
|
|
|
echo '#pragma once' > src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_ASSET "DuckStation-x64.AppImage"' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h
|
|
|
|
|
|
|
|
|
2022-07-21 07:27:32 +00:00
|
|
|
- name: Compile build
|
2021-06-04 06:49:27 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2023-09-17 02:28:11 +00:00
|
|
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_PREFIX_PATH=$HOME/deps -DCMAKE_TOOLCHAIN_FILE=../scripts/clang-toolchain.cmake ..
|
2021-12-26 22:34:21 +00:00
|
|
|
cmake --build . --parallel
|
2022-07-21 07:27:32 +00:00
|
|
|
cd ..
|
2023-09-05 12:03:02 +00:00
|
|
|
scripts/make-appimage.sh $(realpath .) $(realpath ./build) $HOME/deps DuckStation-x64
|
2022-07-21 07:27:32 +00:00
|
|
|
|
|
|
|
- name: Upload Qt AppImage
|
2021-06-04 06:49:27 +00:00
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2022-07-21 07:27:32 +00:00
|
|
|
name: "linux-x64-appimage-qt"
|
|
|
|
path: "DuckStation-x64.AppImage"
|
|
|
|
|
2022-07-31 04:46:30 +00:00
|
|
|
|
2023-09-02 07:05:49 +00:00
|
|
|
linux-flatpak-build:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: scripts/flatpak/install-packages.sh
|
|
|
|
|
|
|
|
- name: Generate AppStream XML
|
|
|
|
run: |
|
2023-09-30 05:17:18 +00:00
|
|
|
scripts/generate-metainfo.sh scripts/flatpak
|
|
|
|
cat scripts/flatpak/org.duckstation.DuckStation.metainfo.xml
|
|
|
|
flatpak run org.freedesktop.appstream-glib validate scripts/flatpak/org.duckstation.DuckStation.metainfo.xml
|
2023-09-02 07:05:49 +00:00
|
|
|
|
|
|
|
- name: Build Flatpak
|
|
|
|
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
|
|
|
|
with:
|
|
|
|
bundle: duckstation-x64.flatpak
|
2023-09-30 05:17:18 +00:00
|
|
|
manifest-path: scripts/flatpak/org.duckstation.DuckStation.json
|
2023-09-02 07:05:49 +00:00
|
|
|
arch: x86_64
|
|
|
|
build-bundle: true
|
|
|
|
verbose: true
|
|
|
|
#mirror-screenshots-url: https://dl.flathub.org/repo/screenshots
|
|
|
|
#branch: ${{ inputs.branch }}
|
|
|
|
branch: master
|
|
|
|
cache: true
|
|
|
|
restore-cache: true
|
|
|
|
cache-key: flatpak-x64-${{ hashFiles('.scripts/flatpak/**/*.json') }}
|
|
|
|
|
|
|
|
# - name: Commit screenshots to OSTree
|
|
|
|
# run: |
|
|
|
|
# ostree commit --repo=repo --canonical-permissions --branch=screenshots/x86_64 flatpak_app/screenshots
|
|
|
|
|
|
|
|
- name: Upload Flatpak
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-flatpak"
|
|
|
|
path: "duckstation-x64.flatpak"
|
|
|
|
|
|
|
|
|
2022-10-08 11:32:46 +00:00
|
|
|
macos-build:
|
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
brew install curl ninja
|
|
|
|
|
|
|
|
- name: Cache Dependencies
|
|
|
|
id: cache-deps-mac
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: ~/deps
|
|
|
|
key: deps-mac ${{ hashFiles('scripts/build-dependencies-mac.sh') }}
|
|
|
|
|
|
|
|
- name: Build Dependencies
|
|
|
|
if: steps.cache-deps-mac.outputs.cache-hit != 'true'
|
|
|
|
run: scripts/build-dependencies-mac.sh
|
|
|
|
|
2023-09-23 05:43:12 +00:00
|
|
|
- name: Tag as preview build
|
|
|
|
if: github.ref == 'refs/heads/master'
|
|
|
|
run: |
|
|
|
|
echo '#pragma once' > src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_ASSET "duckstation-mac-release.zip"' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAG "preview"' >> src/scmversion/tag.h
|
|
|
|
|
|
|
|
- name: Tag as dev build
|
|
|
|
if: github.ref == 'refs/heads/dev'
|
|
|
|
run: |
|
|
|
|
echo '#pragma once' > src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_ASSET "duckstation-mac-release.zip"' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAGS {"latest", "preview"}' >> src/scmversion/tag.h
|
|
|
|
echo '#define SCM_RELEASE_TAG "latest"' >> src/scmversion/tag.h
|
|
|
|
|
2022-10-08 11:32:46 +00:00
|
|
|
- name: Compile and zip .app
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../scripts/make-universal-macos-binary.sh ..
|
|
|
|
zip -r duckstation-mac-release.zip DuckStation.app/
|
|
|
|
|
|
|
|
- name: Upload macOS .app
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "macos"
|
|
|
|
path: "build/duckstation-mac-release.zip"
|
2021-06-04 06:49:27 +00:00
|
|
|
|
|
|
|
|
2020-05-17 13:00:26 +00:00
|
|
|
create-release:
|
2023-09-02 07:05:49 +00:00
|
|
|
needs: [windows-build, windows-arm64-build, linux-build, linux-flatpak-build, macos-build]
|
2021-02-18 15:25:57 +00:00
|
|
|
runs-on: "ubuntu-20.04"
|
2021-06-08 06:39:52 +00:00
|
|
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
2020-05-17 13:00:26 +00:00
|
|
|
steps:
|
2020-11-22 04:05:37 +00:00
|
|
|
- name: Download Windows Artifacts
|
2020-05-17 13:00:26 +00:00
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
2020-11-22 04:05:37 +00:00
|
|
|
name: "windows"
|
2020-05-17 13:00:26 +00:00
|
|
|
|
2021-01-07 15:11:19 +00:00
|
|
|
- name: Download Windows ARM64 Artifact
|
2020-12-26 16:21:16 +00:00
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
2021-01-07 15:11:19 +00:00
|
|
|
name: "windows-arm64"
|
2020-12-26 16:21:16 +00:00
|
|
|
|
2020-08-15 03:31:28 +00:00
|
|
|
- name: Download Qt AppImage Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-x64-appimage-qt"
|
|
|
|
|
2023-09-02 07:05:49 +00:00
|
|
|
- name: Download Flatpak Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "linux-flatpak"
|
|
|
|
|
2022-10-08 11:32:46 +00:00
|
|
|
- name: Download MacOS Artifact
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: "macos"
|
2022-07-31 04:46:30 +00:00
|
|
|
|
2020-12-25 02:56:14 +00:00
|
|
|
- name: Create preview release
|
2020-12-21 16:18:15 +00:00
|
|
|
if: github.ref == 'refs/heads/master'
|
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
2020-12-25 02:56:14 +00:00
|
|
|
automatic_release_tag: "preview"
|
2020-12-21 16:40:27 +00:00
|
|
|
prerelease: true
|
2020-12-25 02:56:14 +00:00
|
|
|
title: "Latest Preview Build"
|
2020-12-21 16:18:15 +00:00
|
|
|
files: |
|
|
|
|
windows/duckstation-windows-x64-release.zip
|
2021-01-31 06:13:40 +00:00
|
|
|
windows/duckstation-windows-x64-release-symbols.zip
|
2021-01-07 15:11:19 +00:00
|
|
|
windows-arm64/duckstation-windows-arm64-release.zip
|
2021-01-31 06:13:40 +00:00
|
|
|
windows-arm64/duckstation-windows-arm64-release-symbols.zip
|
2022-07-22 12:51:20 +00:00
|
|
|
linux-x64-appimage-qt/DuckStation-x64.AppImage
|
2023-09-02 07:05:49 +00:00
|
|
|
linux-flatpak/duckstation-x64.flatpak
|
2022-10-08 11:32:46 +00:00
|
|
|
macos/duckstation-mac-release.zip
|
2021-12-26 22:34:21 +00:00
|
|
|
|
2020-12-25 02:56:14 +00:00
|
|
|
- name: Create dev release
|
|
|
|
if: github.ref == 'refs/heads/dev'
|
2020-05-17 13:00:26 +00:00
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "latest"
|
2020-12-21 16:40:27 +00:00
|
|
|
prerelease: false
|
2022-12-06 10:29:27 +00:00
|
|
|
title: "Latest Rolling Release"
|
2020-05-17 13:00:26 +00:00
|
|
|
files: |
|
2020-11-22 04:05:37 +00:00
|
|
|
windows/duckstation-windows-x64-release.zip
|
2021-01-31 06:13:40 +00:00
|
|
|
windows/duckstation-windows-x64-release-symbols.zip
|
2021-01-07 15:11:19 +00:00
|
|
|
windows-arm64/duckstation-windows-arm64-release.zip
|
2021-01-31 06:13:40 +00:00
|
|
|
windows-arm64/duckstation-windows-arm64-release-symbols.zip
|
2022-07-22 12:51:20 +00:00
|
|
|
linux-x64-appimage-qt/DuckStation-x64.AppImage
|
2023-09-02 07:05:49 +00:00
|
|
|
linux-flatpak/duckstation-x64.flatpak
|
2022-10-08 11:32:46 +00:00
|
|
|
macos/duckstation-mac-release.zip
|
2022-12-06 10:29:27 +00:00
|
|
|
|