Skip to content

Commit

Permalink
Minor simplification to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed May 23, 2021
1 parent 8648d65 commit 8ba8ba7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ jobs:
- name: Download Better CMake
run: wget -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Linux-x86_64.sh
- name: Install Better CMake
run: mkdir cmake && printf "y\nn\ny\ny\ny\n" | sh cmake-install.sh --prefix=$PWD/cmake
run: mkdir cmake && sh cmake-install.sh --prefix=$PWD/cmake --skip-license
- name: Install LuaJIT Development Libraries (i386)
run: sudo apt-get install --assume-yes gcc-multilib libluajit-5.1-dev:i386
- name: Checkout
uses: actions/checkout@v2
with:
path: cs2djit
- name: Submodule Init
run: cd cs2djit && git submodule sync --recursive && git submodule update --init --force --recursive --depth=1
submodules: true
- name: Configure
run: CFLAGS=-m32 $PWD/cmake/bin/cmake -Bbuild -Hcs2djit -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_BUILD_TYPE=Release
- name: Install
Expand All @@ -41,7 +40,7 @@ jobs:
- name: Download Better CMake
run: wget -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Linux-x86_64.sh
- name: Install Better CMake
run: mkdir cmake && printf "y\nn\ny\ny\ny\n" | sh cmake-install.sh --prefix=$PWD/cmake
run: mkdir cmake && sh cmake-install.sh --prefix=$PWD/cmake --skip-license
- name: Install LuaJIT (Host)
run: sudo apt-get install --assume-yes luajit
- name: Install MinGW-w64 Toolchain
Expand All @@ -58,8 +57,7 @@ jobs:
uses: actions/checkout@v2
with:
path: cs2djit
- name: Submodule Init
run: cd cs2djit && git submodule sync --recursive && git submodule update --init --force --recursive --depth=1
submodules: true
- name: Configure
run: LUAJIT_DIR=$PWD/LuaJIT/src $PWD/cmake/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$PWD/cs2djit/cmake/mingw-w64.cmake -Bbuild -Hcs2djit -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_BUILD_TYPE=Release
- name: Install
Expand Down

0 comments on commit 8ba8ba7

Please sign in to comment.