From 006dc34a89211958e037df53f2770944b6459605 Mon Sep 17 00:00:00 2001 From: Tim Siebert Date: Mon, 28 Oct 2024 20:39:54 +0100 Subject: [PATCH] add reusable strings --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6eb246fa..2e90b145 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - 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. + id: strings + shell: bash + run: | + echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" + - name: Build ADOL-C run: > cmake -B ${{ steps.strings.outputs.build-output-dir }}