Skip to content

Commit 41b9498

Browse files
committed
Fix Linux audio
1 parent 8d08dfc commit 41b9498

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
@@ -57,6 +57,62 @@ jobs:
5757
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
5858
echo "shorthash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
5959
60+
linux-sdl:
61+
runs-on: ubuntu-24.04
62+
needs: get-info
63+
steps:
64+
- uses: actions/checkout@v4
65+
with:
66+
submodules: recursive
67+
68+
- name: Install dependencies
69+
run: sudo apt-get update && sudo apt install -y libx11-dev libxext-dev libwayland-dev libfuse2 clang build-essential libasound2-dev libpulse-dev libopenal-dev
70+
71+
- name: Cache CMake Configuration
72+
uses: actions/cache@v4
73+
env:
74+
cache-name: ${{ runner.os }}-sdl-cache-cmake-configuration
75+
with:
76+
path: |
77+
${{github.workspace}}/build
78+
key: ${{ env.cache-name }}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }}
79+
restore-keys: |
80+
${{ env.cache-name }}-
81+
82+
- name: Cache CMake Build
83+
uses: hendrikmuhs/[email protected]
84+
env:
85+
cache-name: ${{ runner.os }}-sdl-cache-cmake-build
86+
with:
87+
append-timestamp: false
88+
key: ${{ env.cache-name }}-${{ hashFiles('**/CMakeLists.txt', 'cmake/**') }}
89+
90+
- name: Configure CMake
91+
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
92+
93+
- name: Build
94+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel
95+
96+
- name: Package and Upload Linux(ubuntu64) SDL artifact
97+
run: |
98+
ls -la ${{ github.workspace }}/build/shadps4
99+
100+
- uses: actions/upload-artifact@v4
101+
with:
102+
name: shadps4-ubuntu64-${{ needs.get-info.outputs.date }}-${{ needs.get-info.outputs.shorthash }}
103+
path: ${{ github.workspace }}/build/shadps4
104+
105+
- name: Run AppImage packaging script
106+
run: ./.github/linux-appimage-sdl.sh
107+
108+
- name: Package and Upload Linux SDL artifact
109+
run: |
110+
tar cf shadps4-linux-sdl.tar.gz -C ${{github.workspace}}/build shadps4
111+
- uses: actions/upload-artifact@v4
112+
with:
113+
name: shadps4-linux-sdl-${{ needs.get-info.outputs.date }}-${{ needs.get-info.outputs.shorthash }}
114+
path: Shadps4-sdl.AppImage
115+
60116
linux-qt:
61117
runs-on: ubuntu-24.04
62118
needs: get-info
@@ -66,7 +122,7 @@ jobs:
66122
submodules: recursive
67123

68124
- name: Install dependencies
69-
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
125+
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 libpulse-dev libopenal-dev
70126

71127
- name: Cache CMake Configuration
72128
uses: actions/cache@v4

0 commit comments

Comments
 (0)