From 66d3dff0cc70483473b0b91185e16859398993b8 Mon Sep 17 00:00:00 2001 From: ozlb Date: Fri, 30 Sep 2022 01:32:48 +0200 Subject: [PATCH] Create amalgamate.yml - clone repository - cmake with parameter UA_ENABLE_AMALGAMATION=ON - make - upload artifact as open62541_amalgamate.zip --- .github/workflows/amalgamate.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/amalgamate.yml diff --git a/.github/workflows/amalgamate.yml b/.github/workflows/amalgamate.yml new file mode 100644 index 0000000..3a9c591 --- /dev/null +++ b/.github/workflows/amalgamate.yml @@ -0,0 +1,34 @@ +name: amalgamate CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + linux: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Clone repositiory + run: git clone https://github.com/open62541/open62541.git + + - name: Amalgamate + run: | + mkdir open62541/build + cd open62541/build + cmake -D UA_ENABLE_AMALGAMATION=ON .. + make + + - name: Archive + uses: actions/upload-artifact@v3 + with: + name: open62541_amalgamate + path: | + open62541/build/open62541.h + open62541/build/open62541.c + open62541/build/bin/libopen62541.a