From e1a1d931ea5ddff1593f660c33ea05b092e1d109 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 24 Jan 2025 18:10:27 +0100 Subject: [PATCH] That worked! Trying linux next. Also try to build installers. --- .github/workflows/build.yml | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86220ec..e3395a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,7 @@ jobs: configurePreset: mac-production buildPreset: mac-production testPreset: mac-production + packagePreset: mac-production - name: Create installer shell: bash @@ -73,6 +74,75 @@ jobs: build-linux: + name: build-linux + runs-on: ubuntu-latest + env: + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: 'recursive' + lfs: 'true' + fetch-depth: 0 + - name: Get all tags + run: | + git show-ref --tags + git log -40 + git describe + - name: Export GitHub Actions cache environment variables for vcpkg + uses: actions/github-script@v7 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + - name: Install CMake + uses: lukka/get-cmake@latest + + - name: Setup vcpkg + uses: lukka/run-vcpkg@v11 + + - name: CMake configure, build vcpkg packages, build & test + uses: lukka/run-cmake@v10 + with: + configurePreset: linux-production + buildPreset: linux-production + testPreset: linux-production + packagePreset: linux-production + + - name: Create installer + shell: bash + run: | + cpack --preset linux-production + ls -l build/package + - name: On failure, Capture build folders as artifact + if: ${{ failure() }} + shell: bash + run: | + mkdir -p build vcpkg/buildtrees + tar cfz build.tgz build + tar cfz vcpkg-buildtrees.tgz vcpkg/buildtrees + ls -l + - name: On failure, Upload build folder + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: lldash-linux-x86_64-build-folder + path: build.tgz + - name: On failure, Upload vcpkg buildtrees folder + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: lldash-linux-x86_64-vcpkg-buildtrees-folder + path: vcpkg-buildtrees.tgz + - name: Upload installer folder + uses: actions/upload-artifact@v4 + with: + name: lldash-linux-x86_64-${{ github.ref_name }}.tar.gz + path: build/package/lldash-linux-x86_64-*.tar.gz + + + build-linux-old: if: ${{ false }} name: build-linux runs-on: ubuntu-latest