Skip to content

Commit 9a09850

Browse files
committed
test ci
1 parent 327adc5 commit 9a09850

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,62 @@ jobs:
5353
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
5454
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
5555
56+
linux-sdl:
57+
runs-on: ubuntu-24.04
58+
needs: get-info
59+
steps:
60+
- uses: actions/checkout@v4
61+
with:
62+
submodules: recursive
63+
64+
- name: Install dependencies
65+
run: sudo apt-get update && sudo apt install -y libx11-dev libxext-dev libwayland-dev libfuse2 clang build-essential
66+
67+
- name: Cache CMake Configuration
68+
uses: actions/cache@v4
69+
env:
70+
cache-name: ${{ runner.os }}-sdl-cache-cmake-configuration
71+
with:
72+
path: |
73+
${{github.workspace}}/build
74+
key: ${{ env.cache-name }}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }}
75+
restore-keys: |
76+
${{ env.cache-name }}-
77+
78+
- name: Cache CMake Build
79+
uses: hendrikmuhs/[email protected]
80+
env:
81+
cache-name: ${{ runner.os }}-sdl-cache-cmake-build
82+
with:
83+
append-timestamp: false
84+
key: ${{ env.cache-name }}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }}
85+
86+
- name: Configure CMake
87+
run: cmake --fresh -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
88+
89+
- name: Build
90+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel
91+
92+
- name: Package and Upload Linux(ubuntu64) SDL artifact
93+
run: |
94+
ls -la ${{ github.workspace }}/build/shadps4
95+
96+
- uses: actions/upload-artifact@v4
97+
with:
98+
name: shadps4-ubuntu64-${{ needs.get-info.outputs.date }}-${{ needs.get-info.outputs.shorthash }}
99+
path: ${{ github.workspace }}/build/shadps4
100+
101+
- name: Run AppImage packaging script
102+
run: ./.github/linux-appimage-sdl.sh
103+
104+
- name: Package and Upload Linux SDL artifact
105+
run: |
106+
tar cf shadps4-linux-sdl.tar.gz -C ${{github.workspace}}/build shadps4
107+
- uses: actions/upload-artifact@v4
108+
with:
109+
name: shadps4-linux-sdl-${{ needs.get-info.outputs.date }}-${{ needs.get-info.outputs.shorthash }}
110+
path: Shadps4-sdl.AppImage
111+
56112
linux-qt:
57113
runs-on: ubuntu-24.04
58114
needs: get-info
@@ -62,7 +118,7 @@ jobs:
62118
submodules: recursive
63119

64120
- name: Install dependencies
65-
run: sudo apt-get update && sudo apt install -y libx11-dev libxext-dev libwayland-dev libfuse2 clang build-essential qt6-base-dev qt6-tools-dev qt6-multimedia-dev
121+
run: sudo apt-get update && sudo apt install -y libx11-dev libxext-dev libwayland-dev libfuse2 clang build-essential qt6-base-dev qt6-tools-dev qt6-multimedia-dev libasound2-dev
66122

67123
- name: Cache CMake Configuration
68124
uses: actions/cache@v4

0 commit comments

Comments
 (0)