Skip to content

Commit

Permalink
That worked! Trying linux next. Also try to build installers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjansen committed Jan 24, 2025
1 parent 7ad0cd6 commit e1a1d93
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
configurePreset: mac-production
buildPreset: mac-production
testPreset: mac-production
packagePreset: mac-production

- name: Create installer
shell: bash
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e1a1d93

Please sign in to comment.