Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
109 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
echo -e "== Building the Debian package ==" | ||
dpkg-buildpackage -b | ||
if [ $? -ne 0 ] ; then exit 1 ; fi | ||
cp ../open62541*.deb . | ||
# Copy for github release script | ||
cp ../open62541*.deb ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,44 @@ | ||
workflow "Build and Deploy" { | ||
on = "push" | ||
resolves = ["Build"] | ||
on = "push" | ||
resolves = ["Build"] | ||
} | ||
|
||
|
||
action "Init Submodules" { | ||
needs = "Init Submodules" | ||
uses = "./.github/actions/build-base" | ||
runs = ["git submodule sync && git submodule update --init --recursive"] | ||
action "Init: Submodules" { | ||
uses = "./.github/actions/build-base" | ||
runs = "sh -c" | ||
args = ["git submodule sync && git submodule update --init --recursive"] | ||
} | ||
|
||
action "Build Full NS0" { | ||
needs = "Init Submodules" | ||
uses = "./.github/actions/build-base" | ||
runs = ["./.github/actions/build_full_ns0.sh"] | ||
action "Build: Full NS0 (Python2)" { | ||
needs = "Init: Submodules" | ||
uses = "./.github/actions/build-base" | ||
runs = "sh -c" | ||
args = ["export PYTHON=python2 && ./.github/actions/build_full_ns0.sh"] | ||
} | ||
|
||
action "Unit Test Full NS0" { | ||
needs = "Build Full NS0" | ||
uses = "./.github/actions/build-base" | ||
runs = ["cd build && make test"] | ||
action "Build: Full NS0" { | ||
needs = "Init: Submodules" | ||
uses = "./.github/actions/build-base" | ||
runs = "sh -c" | ||
args = ["export PYTHON=python3 && ./.github/actions/build_full_ns0.sh"] | ||
} | ||
|
||
action "Test: Full NS0" { | ||
needs = ["Build: Full NS0 (Python2)", "Build: Full NS0"] | ||
uses = "./.github/actions/build-base" | ||
runs = "sh -c" | ||
args = ["cd build-full-ns0-python3 && make test"] | ||
} | ||
|
||
action "Test: Debian Packaging" { | ||
needs = "Init: Submodules" | ||
uses = "./.github/actions/build-base" | ||
runs = "sh -c" | ||
args = ["export PYTHON=python2 && ./.github/actions/build_debian_package.sh"] | ||
} | ||
|
||
action "Build" { | ||
needs = ["Unit Test Full NS0"] | ||
uses = "./.github/actions/build-base" | ||
needs = ["Test: Full NS0"] | ||
} |