From d9d9add363355c74ee2b8d9f957db61614fdaae7 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Wed, 17 Mar 2021 22:26:08 +0000 Subject: [PATCH] workflows: Init build --- .github/workflows/build_pkg.yml | 23 +++++++++++++++++++++++ scripts/builder.sh | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_pkg.yml diff --git a/.github/workflows/build_pkg.yml b/.github/workflows/build_pkg.yml new file mode 100644 index 00000000..df937239 --- /dev/null +++ b/.github/workflows/build_pkg.yml @@ -0,0 +1,23 @@ +name: "Build d-SEAMS" +on: + pull_request: + push: +jobs: + build_pkg: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + - uses: cachix/install-nix-action@v12 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v8 + with: + name: dseams + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix-build + - run: nix-shell --run 'scripts/builder.sh' --pure + - run: | + cd shellBuild + ./yodaStruct_test + - run: nix-shell --run "echo OK" diff --git a/scripts/builder.sh b/scripts/builder.sh index 594a69c2..eb625f78 100755 --- a/scripts/builder.sh +++ b/scripts/builder.sh @@ -13,5 +13,6 @@ if [[ "$PWD" =~ seams-core ]]; then cp yodaStruct ../ cp libyodaLib.so ../ cd ../ - gdb --args yodaStruct -c lua_inputs/config.yml + # gdb --args yodaStruct -c lua_inputs/config.yml + yodaStruct -c lua_inputs/config.yml fi