From d904dc14fb2b10dba9926771275749be7635e2ed Mon Sep 17 00:00:00 2001 From: Mattia Montanari Date: Tue, 14 Feb 2023 14:05:42 +0100 Subject: [PATCH] run GO example --- .github/workflows/github-opengjk-examples.yml | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/github-opengjk-examples.yml b/.github/workflows/github-opengjk-examples.yml index 2b65e8f..e83b3d5 100644 --- a/.github/workflows/github-opengjk-examples.yml +++ b/.github/workflows/github-opengjk-examples.yml @@ -6,18 +6,22 @@ jobs: runs-on: ubuntu-latest container: mmontanari/devenv:buildenv-fedora steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v3 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - run: echo "🍏 This job's status is ${{ job.status }}." - run: cmake -E make_directory build - run: cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release .. - run: cmake --build build - run: cmake -E chdir build/examples/c/ ./example_lib_opengjk_ce - - name: List files in the repository - run: | - ls ${{ github.workspace }} + + Run_GO_example: + runs-on: ubuntu-latest + container: mmontanari/devenv:buildenv-fedora + steps: + - uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.15 + - run: cd examples/go/openGJK + - run: go build + - run: go test -v