From 8086cbc6a2764ec32b094331c354efedddb17f47 Mon Sep 17 00:00:00 2001 From: albertywang Date: Tue, 13 Jun 2023 15:26:55 -0500 Subject: [PATCH 1/2] Initial attempt at building the x64 libraries on linux --- .github/workflows/build-linux-x64.yml | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/build-linux-x64.yml diff --git a/.github/workflows/build-linux-x64.yml b/.github/workflows/build-linux-x64.yml new file mode 100644 index 0000000..2399cf3 --- /dev/null +++ b/.github/workflows/build-linux-x64.yml @@ -0,0 +1,54 @@ +name: Run CI Tests + +on: + push: + branches: [ build-linux-library ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + CC: ${{github.workspace}}/llvm/bin/clang + CXX: ${{github.workspace}}/llvm/bin/clang++ + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + submodules: true + + - name: Get LLVM from cache + id: cache-llvm + uses: actions/cache@v3 + with: + path: | + C:/Program Files/LLVM + ./llvm + key: llvm-cache + + - name: Install LLVM + uses: KyleMayes/install-llvm-action@v1 + with: + version: "15" + cached: ${{ steps.cache-llvm.outputs.cache-hit }} + + - name: Run vcpkg + uses: lukka/run-vcpkg@v10 + id: runvcpkg + with: + vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' + vcpkgGitCommitId: '94bfbda514961bf2e29ef803c975ec36379d75e5' + vcpkgJsonGlob: '**/vcpkg.json' + + - name: Install cmake + uses: lukka/get-cmake@latest + + - name: Get dependencies and build + uses: lukka/run-cmake@v10 + with: + cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' + configurePreset: 'x64-library' + buildPreset: 'x64-cgamelink' \ No newline at end of file From 2ebe7e1a38d8a13805f81c222f7876febbfc7145 Mon Sep 17 00:00:00 2001 From: albertywang Date: Tue, 13 Jun 2023 15:35:31 -0500 Subject: [PATCH 2/2] Expose build artifact --- .github/workflows/build-linux-x64.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-linux-x64.yml b/.github/workflows/build-linux-x64.yml index 2399cf3..180c4aa 100644 --- a/.github/workflows/build-linux-x64.yml +++ b/.github/workflows/build-linux-x64.yml @@ -2,7 +2,7 @@ name: Run CI Tests on: push: - branches: [ build-linux-library ] + branches: [ master ] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -51,4 +51,10 @@ jobs: with: cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' configurePreset: 'x64-library' - buildPreset: 'x64-cgamelink' \ No newline at end of file + buildPreset: 'x64-cgamelink' + + - name: Archive the .so + uses: actions/upload-artifact@v3 + with: + name: libcgamelink.so + path: builds/x64-library/Release/libcgamelink.so \ No newline at end of file