Skip to content

Commit 9197034

Browse files
committed
1 parent 4365718 commit 9197034

File tree

4 files changed

+81
-63
lines changed

4 files changed

+81
-63
lines changed

.ci/deploy-linux.sh

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,5 @@ if [ "$DEPLOY_APPIMAGE" = "true" ]; then
3131
linuxdeploy --appimage-extract
3232
./squashfs-root/plugins/linuxdeploy-plugin-appimage/usr/bin/appimagetool AppDir -g
3333

34-
APPIMAGE_SUFFIX="linux_${CPU_ARCH}"
35-
if [ "$CPU_ARCH" = "x86_64" ]; then
36-
# Preserve back compat. Previous versions never included the full arch.
37-
APPIMAGE_SUFFIX="linux64"
38-
fi
39-
40-
COMM_TAG=$(awk '/version{.*}/ { printf("%d.%d.%d", $5, $6, $7) }' ../rpcs3/rpcs3_version.cpp)
41-
COMM_COUNT="$(git rev-list --count HEAD)"
42-
COMM_HASH="$(git rev-parse --short=8 HEAD)"
43-
RPCS3_APPIMAGE="rpcs3-v${COMM_TAG}-${COMM_COUNT}-${COMM_HASH}_${APPIMAGE_SUFFIX}.AppImage"
44-
45-
mv ./RPCS3*.AppImage "$RPCS3_APPIMAGE"
46-
47-
# If we're building using a CI, let's copy over the AppImage artifact
48-
if [ -n "$BUILD_ARTIFACTSTAGINGDIRECTORY" ]; then
49-
cp "$RPCS3_APPIMAGE" "$ARTDIR"
50-
fi
51-
52-
FILESIZE=$(stat -c %s ./rpcs3*.AppImage)
53-
SHA256SUM=$(sha256sum ./rpcs3*.AppImage | awk '{ print $1 }')
54-
echo "${SHA256SUM};${FILESIZE}B" > "$RELEASE_MESSAGE"
34+
mv ./*.AppImage ../RPCS3-Qt-UI.AppImage
5535
fi

.ci/deploy-windows.sh

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,17 @@
33
# First let's see print some info about our caches
44
"$(cygpath -u "$CCACHE_BIN_DIR")"/ccache.exe --show-stats -v
55

6-
# BUILD_blablabla is Azure specific, so we wrap it for portability
7-
ARTIFACT_DIR="$BUILD_ARTIFACTSTAGINGDIRECTORY"
8-
96
# Remove unecessary files
107
rm -f ./rpcs3/bin/rpcs3.exp ./rpcs3/bin/rpcs3.lib ./rpcs3/bin/rpcs3.pdb ./rpcs3/bin/vc_redist.x64.exe
118
rm -rf ./rpcs3/bin/git
129

1310
# Prepare compatibility and SDL database for packaging
14-
mkdir ./rpcs3/bin/config
15-
mkdir ./rpcs3/bin/config/input_configs
11+
mkdir -p ./rpcs3/bin/config/input_configs
1612
curl -fsSL 'https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt' 1> ./rpcs3/bin/config/input_configs/gamecontrollerdb.txt
17-
curl -fsSL 'https://rpcs3.net/compatibility?api=v1&export' | iconv -t UTF-8 1> ./rpcs3/bin/GuiConfigs/compat_database.dat
1813
cp -rf ./build-msvc/bin/ ./rpcs3/bin/
1914

20-
# Download SSL certificate (not needed with CURLSSLOPT_NATIVE_CA)
21-
#curl -fsSL 'https://curl.haxx.se/ca/cacert.pem' 1> ./bin/cacert.pem
22-
2315
# Package artifacts
2416
7z a -m0=LZMA2 -mx9 "$BUILD" ./rpcs3/bin/*
2517

26-
# Generate sha256 hashes
27-
# Write to file for GitHub releases
28-
sha256sum "$BUILD" | awk '{ print $1 }' | tee "$BUILD.sha256"
29-
echo "$(cat "$BUILD.sha256");$(stat -c %s "$BUILD")B" > GitHubReleaseMessage.txt
30-
3118
# Move files to publishing directory
32-
cp -- "$BUILD" "$ARTIFACT_DIR"
33-
cp -- "$BUILD.sha256" "$ARTIFACT_DIR"
19+
cp -- "$BUILD" ./RPCS3-Qt-UI.7z

.github/workflows/rpcs3.yml

Lines changed: 77 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build RPCS3
1+
name: Build RPCS3 Qt UI (Legacy)
22

33
defaults:
44
run:
@@ -36,7 +36,7 @@ jobs:
3636
docker_img: "rpcs3/rpcs3-ci-jammy-aarch64:1.4"
3737
build_sh: "rpcs3/.ci/build-linux-aarch64.sh"
3838
compiler: clang
39-
name: RPCS3 QT UI for Linux ${{ matrix.os }} ${{ matrix.compiler }}
39+
name: RPCS3 Qt UI (Legacy) for Linux ${{ matrix.os }} ${{ matrix.compiler }}
4040
runs-on: ${{ matrix.os }}
4141
env:
4242
CCACHE_DIR: ${{ github.workspace }}/ccache
@@ -46,6 +46,8 @@ jobs:
4646
ARTDIR: "/root/artifacts"
4747
RELEASE_MESSAGE: "/rpcs3/GitHubReleaseMessage.txt"
4848
COMPILER: ${{ matrix.compiler }}
49+
RX_VERSION: "Unknown"
50+
RX_SHA: "Unknown"
4951
steps:
5052
- name: Checkout repository
5153
uses: actions/checkout@main
@@ -71,15 +73,38 @@ jobs:
7173
${{ matrix.docker_img }} \
7274
${{ matrix.build_sh }}
7375
76+
RX_VERSION=`cat .rx.version | awk -F'-' '{print $1}'`
77+
RX_SHA=`cat .rx.version | awk -F'-' '{print $5}'`
78+
79+
echo "RX_VERSION=$RX_VERSION" >> "${{ github.env }}"
80+
echo "RX_SHA=$RX_SHA" >> "${{ github.env }}"
81+
mv RPCS3-Qt-UI.AppImage RPCS3-Qt-UI-Linux-${{ runner.arch }}-${{ matrix.compiler }}.AppImage
82+
7483
- name: Upload artifacts
7584
uses: actions/upload-artifact@main
7685
with:
77-
name: RPCS3 QT UI for Linux (${{ runner.arch }}, ${{ matrix.compiler }})
78-
path: ${{ env.BUILD_ARTIFACTSTAGINGDIRECTORY }}/*.AppImage
86+
name: RPCS3 Qt UI (Legacy) for Linux (${{ runner.arch }}, ${{ matrix.compiler }})
87+
path: RPCS3-Qt-UI-Linux-${{ runner.arch }}-${{ matrix.compiler }}.AppImage
7988
compression-level: 0
8089

90+
- name: Deploy build
91+
uses: softprops/action-gh-release@v2
92+
if: |
93+
github.event_name != 'pull_request' &&
94+
github.ref == 'refs/heads/master' &&
95+
github.repository == 'RPCSX/rpcsx'
96+
with:
97+
prerelease: false
98+
make_latest: true
99+
repository: RPCSX/rpcsx-build
100+
token: ${{ secrets.BUILD_TOKEN }}
101+
tag_name: v${{ env.RX_VERSION }}-${{ env.RX_SHA }}
102+
files: RPCS3-Qt-UI-Linux-${{ runner.arch }}-${{ matrix.compiler }}.AppImage
103+
body: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
104+
105+
81106
Windows_Build:
82-
name: RPCS3 QT UI Windows
107+
name: RPCS3 Qt UI (Legacy) for Windows
83108
runs-on: windows-2025
84109
env:
85110
COMPILER: msvc
@@ -96,8 +121,8 @@ jobs:
96121
CCACHE_INODECACHE: 'true'
97122
CCACHE_SLOPPINESS: 'time_macros'
98123
DEPS_CACHE_DIR: ./dependency_cache
99-
steps:
100124

125+
steps:
101126
- name: Checkout repository
102127
uses: actions/checkout@main
103128
with:
@@ -108,22 +133,22 @@ jobs:
108133
echo "QTDIR=C:\Qt\${{ env.QT_VER }}\${{ env.QT_VER_MSVC }}_64" >> ${{ github.env }}
109134
echo "VULKAN_SDK=C:\VulkanSDK\${{ env.VULKAN_VER }}" >> ${{ github.env }}
110135
111-
- name: Get Cache Keys
112-
run: .ci/get_keys-windows.sh
136+
# - name: Get Cache Keys
137+
# run: .ci/get_keys-windows.sh
113138

114-
- name: Setup Build Ccache
115-
uses: actions/cache@main
116-
with:
117-
path: ${{ env.CCACHE_DIR }}
118-
key: "${{ runner.os }}-ccache-${{ env.COMPILER }}-${{github.run_id}}"
119-
restore-keys: ${{ runner.os }}-ccache-${{ env.COMPILER }}-
139+
# - name: Setup Build Ccache
140+
# uses: actions/cache@main
141+
# with:
142+
# path: ${{ env.CCACHE_DIR }}
143+
# key: "${{ runner.os }}-ccache-${{ env.COMPILER }}-${{github.run_id}}"
144+
# restore-keys: ${{ runner.os }}-ccache-${{ env.COMPILER }}-
120145

121-
- name: Setup Dependencies Cache
122-
uses: actions/cache@main
123-
with:
124-
path: ${{ env.DEPS_CACHE_DIR }}
125-
key: "${{ runner.os }}-${{ env.COMPILER }}-${{ env.QT_VER }}-${{ env.VULKAN_SDK_SHA }}-${{ env.CCACHE_SHA }}-${{ hashFiles('llvm.lock') }}-${{ hashFiles('glslang.lock') }}"
126-
restore-keys: ${{ runner.os }}-${{ env.COMPILER }}-
146+
# - name: Setup Dependencies Cache
147+
# uses: actions/cache@main
148+
# with:
149+
# path: ${{ env.DEPS_CACHE_DIR }}
150+
# key: "${{ runner.os }}-${{ env.COMPILER }}-${{ env.QT_VER }}-${{ env.VULKAN_SDK_SHA }}-${{ env.CCACHE_SHA }}-${{ hashFiles('llvm.lock') }}-${{ hashFiles('glslang.lock') }}"
151+
# restore-keys: ${{ runner.os }}-${{ env.COMPILER }}-
127152

128153
- name: Download and unpack dependencies
129154
run: .ci/setup-windows.sh
@@ -136,23 +161,50 @@ jobs:
136161
echo "$key=$val" >> "${{ github.env }}"
137162
done < .ci/ci-vars.env
138163
139-
- name: Add msbuild to PATH
140-
uses: microsoft/setup-msbuild@main
164+
# - name: Add msbuild to PATH
165+
# uses: microsoft/setup-msbuild@main
141166

142-
- name: Compile RPCS3 QT UI
167+
- name: Configure
143168
run: |
144169
cmake -B build-msvc -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DWITH_RPCSX=off -DWITH_RPCS3=on -DWITH_RPCS3_QT_UI=on -DCMAKE_CONFIGURATION_TYPES="Debug;Release" -DCMAKE_INSTALL_PREFIX="${sourceDir}/out/install/${presetName}" -DUSE_NATIVE_INSTRUCTIONS=on -DUSE_PRECOMPILED_HEADERS=on -DUSE_FAUDIO=off -DUSE_SYSTEM_CURL=off -DUSE_SYSTEM_ZLIB=off -DUSE_SYSTEM_OPENAL=off -DUSE_SYSTEM_OPENCV=off -DBUILD_LLVM=on -DSTATIC_LINK_LLVM=on
170+
171+
- name: Export Version
172+
run: |
173+
RX_VERSION=`cat .rx.version | awk -F'-' '{print $1}'`
174+
RX_SHA=`cat .rx.version | awk -F'-' '{print $5}'`
175+
echo "RX_VERSION=$RX_VERSION" >> "${{ github.env }}"
176+
echo "RX_SHA=$RX_SHA" >> "${{ github.env }}"
177+
178+
- name: Build
179+
run: |
145180
cmake --build build-msvc --config Release
146181
182+
147183
- name: Pack up build artifacts
148184
run: |
149185
mkdir -p "${{ env.BUILD_ARTIFACTSTAGINGDIRECTORY }}"
150186
.ci/deploy-windows.sh
187+
mv RPCS3-Qt-UI.7z RPCS3-Qt-UI-Windows-${{ runner.arch }}-${{ env.COMPILER }}.7z
151188
152189
- name: Upload artifacts (7z)
153190
uses: actions/upload-artifact@main
154191
with:
155-
name: RPCS3 QT UI for Windows (MSVC)
156-
path: ${{ env.BUILD_ARTIFACTSTAGINGDIRECTORY }}
192+
name: RPCS3 Qt UI (Legacy) for Windows (MSVC)
193+
path: RPCS3-Qt-UI-Windows-${{ runner.arch }}-${{ env.COMPILER }}.7z
157194
compression-level: 0
158195
if-no-files-found: error
196+
197+
- name: Deploy build
198+
uses: softprops/action-gh-release@v2
199+
if: |
200+
github.event_name != 'pull_request' &&
201+
github.ref == 'refs/heads/master' &&
202+
github.repository == 'RPCSX/rpcsx'
203+
with:
204+
prerelease: false
205+
make_latest: true
206+
repository: RPCSX/rpcsx-build
207+
token: ${{ secrets.BUILD_TOKEN }}
208+
tag_name: v${{ env.RX_VERSION }}-${{ env.RX_SHA }}
209+
files: RPCS3-Qt-UI-Windows-${{ runner.arch }}-${{ env.COMPILER }}.7z
210+
body: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}

rx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
5454
)
5555

5656

57-
file(WRITE "${CMAKE_SOURCE_DIR}/.rx.version" "${GIT_DATE}-${RX_TAG}-${RX_TAG_VERSION}-${GIT_BRANCH}-0x${GIT_REV}-${GIT_DIRTY}")
57+
file(WRITE "${CMAKE_SOURCE_DIR}/.rx.version" "${GIT_DATE}-${RX_TAG}-${RX_TAG_VERSION}-${GIT_BRANCH}-${GIT_REV}-${GIT_DIRTY}")

0 commit comments

Comments
 (0)