-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2794c51
commit 7ed8d1a
Showing
8 changed files
with
174 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
name: Build and Release Lexbor Binaries | ||
|
||
on: | ||
push: | ||
branches: | ||
- drew/build-workflow | ||
|
||
jobs: | ||
build-macos-arm64: | ||
name: Build macos arm64 | ||
runs-on: macos-13 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recurse' | ||
|
||
- name: Build Lexbor | ||
run: | | ||
cd lexbor | ||
mkdir build && mkdir install | ||
cd build | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../cmake-files/macos-arm64.cmake -DCMAKE_INSTALL_PREFIX=../install | ||
make | ||
make install | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macos-arm64-binaries | ||
path: | | ||
lexbor/install/include | ||
lexbor/install/lib | ||
build-macos-x64: | ||
name: Build macos x64 | ||
runs-on: macos-13 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recurse' | ||
|
||
- name: Build Lexbor | ||
run: | | ||
cd lexbor | ||
mkdir build && mkdir install | ||
cd build | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../cmake-files/macos-x64.cmake -DCMAKE_INSTALL_PREFIX=../install | ||
make | ||
make install | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: macos-x64-binaries | ||
path: | | ||
lexbor/install/include | ||
lexbor/install/lib | ||
build-ios-arm64: | ||
name: Build iOS arm64 | ||
runs-on: macos-13 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recurse' | ||
|
||
- name: Build Lexbor | ||
run: | | ||
cd lexbor | ||
mkdir build && mkdir install | ||
cd build | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../cmake-files/ios-arm64.cmake -DCMAKE_INSTALL_PREFIX=../install | ||
make | ||
make install | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ios-arm64-binaries | ||
path: | | ||
lexbor/install/include | ||
lexbor/install/lib | ||
build-ios-x64: | ||
name: Build iOS x64 | ||
runs-on: macos-13 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recurse' | ||
|
||
- name: Build Lexbor | ||
run: | | ||
cd lexbor | ||
mkdir build && mkdir install | ||
cd build | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../cmake-files/ios-x64.cmake -DCMAKE_INSTALL_PREFIX=../install | ||
make | ||
make install | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ios-x64-binaries | ||
path: | | ||
lexbor/install/include | ||
lexbor/install/lib | ||
build-linux-x64: | ||
name: Build Linux X64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recurse' | ||
|
||
- name: Build Lexbor | ||
run: | | ||
cd lexbor | ||
mkdir build && mkdir install | ||
cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=../install | ||
make | ||
make install | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: linux-arm64-binaries | ||
path: | | ||
lexbor/install/include | ||
lexbor/install/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(CMAKE_SYSTEM_NAME iOS) | ||
set(CMAKE_SYSTEM_PROCESSOR arm64) | ||
|
||
set(CMAKE_OSX_ARCHITECTURES arm64) | ||
set(CMAKE_OSX_DEPLOYMENT_TARGET 9.0) | ||
set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH NO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(CMAKE_SYSTEM_NAME iOS) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
|
||
set(CMAKE_OSX_ARCHITECTURES x86_64) | ||
set(CMAKE_OSX_DEPLOYMENT_TARGET 9.0) | ||
set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH NO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR arm64) | ||
|
||
# specify the cross compiler | ||
set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc) | ||
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++) | ||
|
||
# where is the target environment | ||
set(CMAKE_FIND_ROOT_PATH /usr/arm-linux-gnueabi) | ||
|
||
# search for programs in the build host directories | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
|
||
# for libraries and headers in the target directories | ||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set(CMAKE_SYSTEM_NAME Darwin) | ||
set(CMAKE_SYSTEM_PROCESSOR arm64) | ||
|
||
set(CMAKE_OSX_ARCHITECTURES arm64) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set(CMAKE_SYSTEM_NAME Darwin) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
|
||
set(CMAKE_OSX_ARCHITECTURES x86_64) |