Skip to content

Fix MT3 JP dump NTFS symlinks #86

Fix MT3 JP dump NTFS symlinks

Fix MT3 JP dump NTFS symlinks #86

Workflow file for this run

name: Build and upload artifact
on: [ push, pull_request ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build
run: |
# make it so we can download 32 bit libs
sudo dpkg --add-architecture i386
# update package list
sudo apt-get update
# install dependecies
sudo apt-get install -y build-essential gcc-multilib g++-multilib
sudo apt-get install -y libsdl2-dev:i386 libdbus-1-dev:i386 libdecor-0-dev:i386
# fix includes
sudo cp -r /usr/include/dbus-1.0/dbus /usr/include/dbus
sudo cp /usr/lib/i386-linux-gnu/dbus-1.0/include/dbus/dbus-arch-deps.h /usr/include/dbus
sudo cp /usr/include/libdecor-0/libdecor.h /usr/include
sudo cp /usr/include/drm/* /usr/include
sudo cp /usr/include/ibus-1.0/* /usr/include
sudo cp -r /usr/include/glib-2.0/* /usr/include
sudo cp /usr/lib/i386-linux-gnu/glib-2.0/include/glibconfig.h /usr/include
# add 32bit target to rust
rustup target add i586-unknown-linux-gnu
# fixes pkgconfig cross compile error
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig/
export PKG_CONFIG_SYSROOT_DIR=/usr/lib/i386-linux-gnu/pkgconfig/
# build
cargo build --release --target i586-unknown-linux-gnu
cargo clippy --release --target i586-unknown-linux-gnu -- -A clippy::not_unsafe_ptr_arg_deref -A clippy::missing_safety_doc -A clippy::implicit_saturating_sub -A clippy::missing_transmute_annotations --no-deps
mkdir -p out/
cp target/i586-unknown-linux-gnu/release/libwal_3dxp.so out/
cp -r dist/* out/
git clone https://github.com/kcat/openal-soft
cd openal-soft/build
cmake -DCMAKE_C_FLAGS='-m32' -DCMAKE_CXX_FLAGS='-m32' -DCMAKE_EXE_LINKER_FLAGS='-m32' -DCMAKE_SHARED_LINKER_FLAGS='-m32' -DCMAKE_MODULE_LINKER_FLAGS='-m32' -DALSOFT_STATIC_LIBGCC=TRUE -DALSOFT_STATIC_STDCXX=TRUE -DALSOFT_UTILS=FALSE -DALSOFT_EXAMPLES=FALSE -DCMAKE_BUILD_TYPE=Release ..
make
strip libopenal.so.1.23.1
cd ../..
mv openal-soft/build/libopenal.so.1.23.1 out/libopenal.so
- uses: actions/upload-artifact@v4
with:
name: dist
path: out