From 340a6249f04ff58ff6d33fc4df7ef5cbdedac14b Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 19 Apr 2024 13:44:34 +0200 Subject: [PATCH] Try env --- .github/workflows/test.yml | 3 +-- bin/setup-environment | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 bin/setup-environment diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c773c94f..a24fde6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,5 @@ jobs: - name: Run tests for all exercises run: | - ls -al $HOME/gnucobol/bin - export PATH=$HOME/gnucobol/bin:$PATH + bin/setup-environment bin/test diff --git a/bin/setup-environment b/bin/setup-environment new file mode 100755 index 00000000..74c0ce44 --- /dev/null +++ b/bin/setup-environment @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +$gnucobolDir="${HOME}/gnucobol" +export PATH="${gnucobolDir}/bin:${PATH}" +export COB_CONFIG_DIR="${gnucobolDir}/config" +export COB_COPY_DIR="${gnucobolDir}/copy" +export COB_CFLAGS="-I ${gnucobolDir}/include" +export COB_LDFLAGS="-L ${gnucobolDir}/lib" +export COB_LIBRARY_PATH="${gnucobolDir}/lib" +export COB_LIBS="${gnucobolDir}/bin/libcob-4.dll"