Skip to content

Commit

Permalink
try to fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jan 6, 2024
1 parent 8fb0dbc commit c4ef054
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ppuc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
arch: aarch64
steps:
- uses: actions/checkout@v4
- if: (matrix.platform == 'linux' && matrix.arch == 'x64')
name: Install libudev-dev
run: apt-get install libudev-dev
- if: (matrix.platform == 'win')
name: Add msbuild to path (win runner)
uses: microsoft/setup-msbuild@v1.1
Expand All @@ -76,7 +79,7 @@ jobs:
bind_mount_repository: true
commands: |
apt-get update -y --allow-releaseinfo-change
apt-get install --no-install-recommends -y pkg-config cmake autoconf automake libtool
apt-get install --no-install-recommends -y pkg-config cmake autoconf automake libtool libudev-dev
./platforms/${{ matrix.platform }}/${{ matrix.arch }}/build.sh
- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
12 changes: 6 additions & 6 deletions platforms/macos/arm64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ cd cargs-${LIBCARGS_SHA}
cp include/cargs.h ../../third-party/include/
mkdir build
cd build
cmake ..
cmake -DCMAKE_OSX_ARCHITECTURES=arm64 ..
make
cp libcargs.a ../../../third-party/build-libs/macos/arm64/
cmake -DBUILD_SHARED_LIBS=ON ..
cmake -DCMAKE_OSX_ARCHITECTURES=arm64 -DBUILD_SHARED_LIBS=ON ..
make
cp -P libcargs*.dylib ../../../third-party/runtime-libs/macos/arm64/
cd ../..
Expand All @@ -53,7 +53,7 @@ cp libusb/libusb.h ../../third-party/include
./bootstrap.sh
mkdir build
cd build
../configure --host=x86_64-apple-darwin --disable-examples-build --disable-tests-build LDFLAGS="-Wl,-install_name,@rpath/libusb-1.0.0.dylib"
../configure --host=arm64-apple-darwin --disable-examples-build --disable-tests-build LDFLAGS="-Wl,-install_name,@rpath/libusb-1.0.0.dylib"
make -j${NUM_PROCS}
cd ..
cp build/libusb/.libs/libusb*.a ../../third-party/build-libs/macos/arm64/
Expand All @@ -68,11 +68,11 @@ curl -sL https://github.com/kcat/openal-soft/archive/${LIBOPENAL_SHA}.zip -o ope
unzip openal-soft
cd openal-soft-${LIBOPENAL_SHA}
cp -r include/AL ../../third-party/include/
cmake -DCMAKE_BUILD_TYPE=Release -DLIBTYPE=STATIC -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL_EXAMPLES=OFF -DALSOFT_INSTALL_UTILS=OFF -B build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 -DLIBTYPE=STATIC -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL_EXAMPLES=OFF -DALSOFT_INSTALL_UTILS=OFF -B build
cmake --build build
cp build/libopenal.a ../../third-party/build-libs/macos/arm64/
rm -rf build
cmake -DCMAKE_BUILD_TYPE=Release -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL_EXAMPLES=OFF -DALSOFT_INSTALL_UTILS=OFF -B build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_INSTALL_EXAMPLES=OFF -DALSOFT_INSTALL_UTILS=OFF -B build
cmake --build build
cp -P build/libopenal*.dylib ../../third-party/runtime-libs/macos/arm64/
cd ..
Expand All @@ -86,7 +86,7 @@ unzip pinmame.zip
cd pinmame-${LIBPINMAME_SHA}
cp src/libpinmame/libpinmame.h ../../third-party/include/
cp cmake/libpinmame/CMakeLists_osx-arm64.txt CMakeLists.txt
cmake -DCMAKE_BUILD_TYPE=Release -B build/Release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 -B build/Release
cmake --build build/Release
cp build/Release/libpinmame.a ../../third-party/build-libs/macos/arm64/
cp -P build/Release/libpinmame*.dylib ../../third-party/runtime-libs/macos/arm64/
Expand Down

0 comments on commit c4ef054

Please sign in to comment.