Skip to content

Commit cfc0fc9

Browse files
committed
Fixed submodule checkout and added GH CI scripts for ubuntu-24.04
1 parent 7b7272c commit cfc0fc9

3 files changed

Lines changed: 77 additions & 1 deletion

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: ubuntu2404-x86_64-linux-gcc10
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
env:
11+
BUILD_TYPE: Release
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-24.04
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
22+
- name: Install Tools
23+
run: |
24+
sudo apt-get -qq update
25+
sudo apt-get -qq install gcc-10 make automake autoconf libltdl-dev perl curl
26+
27+
- name: Compile
28+
run: ./compile.bash x86_64-linux-gcc10
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: ubuntu2404-x86_64-w64-mingw32
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
env:
11+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
12+
BUILD_TYPE: Release
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-24.04
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
23+
- name: Install Tools
24+
run: |
25+
sudo apt-get -qq update
26+
sudo apt-get -qq install wine mingw-w64-tools g++-mingw-w64-x86-64 mingw-w64-x86-64-dev gcc-mingw-w64-x86-64 make automake autoconf libltdl-dev perl curl
27+
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
28+
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
29+
30+
- name: Setup Wine
31+
run: |
32+
sudo apt-get -qq install wine-binfmt binfmt-support # wine needs to installed already
33+
sudo update-binfmts --disable cli # disable mono attempts to execute windows binaries
34+
sudo update-binfmts --import /usr/share/binfmts/wine # enable wine to execute windows binaries
35+
echo "WINARCH=win64" >> $GITHUB_ENV
36+
echo "WINEDEBUG=fixme-all,-all" >> $GITHUB_ENV
37+
GCC_S_FILE=$(x86_64-w64-mingw32-g++ --print-file-name libgcc_s.a)
38+
GCC_S_FILE=$(realpath "$GCC_S_FILE")
39+
GCC_RUNTIME_PATH=$(dirname "$GCC_S_FILE")
40+
GCC_RUNTIME_WINEPATH=$(winepath --windows "$GCC_RUNTIME_PATH")
41+
WINPTHREAD_FILE=$(x86_64-w64-mingw32-g++ --print-file-name libwinpthread-1.dll)
42+
WINPTHREAD_FILE=$(realpath "$WINPTHREAD_FILE")
43+
MINGW_RUNTIME_PATH=$(dirname "$WINPTHREAD_FILE")
44+
MINGW_RUNTIME_WINEPATH=$(winepath --windows "$MINGW_RUNTIME_PATH")
45+
echo "WINEPATH=${GCC_RUNTIME_WINEPATH};${MINGW_RUNTIME_WINEPATH}" >> $GITHUB_ENV
46+
47+
- name: Compile
48+
run: ./compile.bash x86_64-w64-mingw32

compile.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ "$#" -lt 1 ]; then
2626
fi
2727

2828
if [ ! -f "$PROJECT_DIR/toolchains/README.md" ]; then
29-
pushd "$PROJECT/toolchains"
29+
pushd "$PROJECT_DIR/toolchains"
3030
git submodule update --init --recursive
3131
popd
3232
fi

0 commit comments

Comments
 (0)