Skip to content

Commit

Permalink
add: ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
ActivePeter committed Nov 29, 2023
1 parent a71e5d7 commit 9c7bc71
Show file tree
Hide file tree
Showing 30 changed files with 348 additions and 370 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Rust
# name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
# env:
# CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install WasmEdge
run: bash ./scripts/install_wasmedge.sh
- name: Install Protobuf
run: bash ./scripts/install_protobuf.sh
- name: Build
run: cargo build --verbose
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install WasmEdge
# run: bash ./scripts/install/install_wasmedge.sh
# - name: Install Protobuf
# run: bash ./scripts/install/install_protobuf.sh
# - name: Build
# run: cargo build --verbose
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Ansible
run: sudo apt install python3 python3-pip && bash scripts/install/install_ansible.sh
- name: Setup Ansible
run: bash scripts/deploy_single_node/1.ansible_setup.sh
- name: Ansible install all
run: ansible-playbook scripts/ans/ans_install_build.yml

- name: Build WasmEdge Image
run: bash docker/WasmEdge/build_image.sh
- name: Install WasmEdge
run: bash ./scripts/install_wasmedge.sh
- name: Install Protobuf
run: bash ./scripts/install_protobuf.sh

- name: Build release
run: cargo build --release
- name: Build WasmServerless Image
run: bash docker/WasmServerless/build_image.sh

- name: CI
run: bash docker/ci.sh
run: bash scripts/deploy_single_node/ci.sh
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target
target
docker.zip
1 change: 1 addition & 0 deletions RunnerGo
Submodule RunnerGo added at 443094
16 changes: 8 additions & 8 deletions docker/WasmServerless/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ DOCKER_DIR="$CURRENT_DIR/docker/WasmServerless"
IMAGE_VERSION="v1"
IMAGE_NAME="wasm_serverless:$IMAGE_VERSION"

if [ ! -d $TARGET_DIR ]
then
cargo build --release
if test $? -ne 0
then
exit 1
fi
fi
# if [ ! -d $TARGET_DIR ]
# then
# cargo build --release
# if test $? -ne 0
# then
# exit 1
# fi
# fi


mkdir -p $DOCKER_DIR/target/release
Expand Down
93 changes: 0 additions & 93 deletions docker/deploy_cluster/build_remote_images.py

This file was deleted.

77 changes: 0 additions & 77 deletions docker/deploy_cluster/docker-stack.yml

This file was deleted.

Loading

0 comments on commit 9c7bc71

Please sign in to comment.