Skip to content

Commit

Permalink
Migrating from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardfritz committed Apr 5, 2023
1 parent 83f99d7 commit d8d91dd
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci
on: push
jobs:
build-OSX:
runs-on: macos-latest
env:
LDFLAGS: -L/usr/local/opt/qt@5/lib
CPPFLAGS: -I/usr/local/opt/qt@5/include
PKG_CONFIG_PATH: /usr/local/opt/qt@5/lib/pkgconfig
HOMEBREW_CURLRC: 1
steps:
- run: echo "/usr/local/opt/qt@5/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
- run: brew install make
- run: brew install ninja
- run: echo insecure >> ~/.curlrc
- run: make -f Makefile.darwin clean
- run: make -f Makefile.darwin tools
- run: make -f Makefile.darwin
- run: tar -cf - PathOfBuilding.app | xz -c > PathOfBuilding.darwin.tar.xz
# - uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: PathOfBuilding.darwin.tar.xz
- uses: actions/upload-artifact@v3
with:
name: PathOfBuilding
path: PathOfBuilding.darwin.tar.xz
Binary file added LiberationSans-Bold.ttf
Binary file not shown.
Binary file added LiberationSans-Regular.ttf
Binary file not shown.
Binary file added VeraMono.ttf
Binary file not shown.
6 changes: 6 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,12 @@ int main(int argc, char **argv)
}
lua_setglobal(L, "arg");

std::string basePath = pobwindow->basePath.toStdString();
std::string extraPathCommand = "package.path = package.path .. \";"
+ basePath
+ "/runtime/lua/?.lua\"";
luaL_dostring(L, extraPathCommand.c_str());

int result = luaL_dofile(L, "Launch.lua");
if (result != 0) {
lua_error(L);
Expand Down
1 change: 1 addition & 0 deletions mesonInstaller.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

cp -r ${MESON_SOURCE_ROOT}/PathOfBuilding/* ${MESON_INSTALL_PREFIX}/Contents/MacOS/
cp -f ${MESON_SOURCE_ROOT}/*.ttf ${MESON_INSTALL_PREFIX}/Contents/MacOS/

mkdir -p ${MESON_INSTALL_PREFIX}/Contents/Frameworks

Expand Down

0 comments on commit d8d91dd

Please sign in to comment.