Skip to content

Commit

Permalink
ensure submodules checked out
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechnobear committed Feb 12, 2024
1 parent 5bd4786 commit 644a72d
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Eigenlabs
name: Build MEC
permissions:
contents: write

Expand Down Expand Up @@ -26,10 +26,13 @@ jobs:
cpp_compiler: [clang++]

steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'true'

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
Expand All @@ -49,11 +52,11 @@ jobs:
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: dist/*
name: ${{runner.os}}
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# path: dist/*
# name: ${{runner.os}}

build-mac:
name: mac
Expand All @@ -66,7 +69,10 @@ jobs:
cpp_compiler: [clang++]
platform: [x86_64, arm64]
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'true'

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
Expand All @@ -90,11 +96,11 @@ jobs:
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: dist/*
name: mac-${{ matrix.platform }}
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# path: dist/*
# name: mac-${{ matrix.platform }}

publish:
name: Publish release
Expand Down

0 comments on commit 644a72d

Please sign in to comment.