Skip to content

Commit

Permalink
8e8b2c/rocket server (#8)
Browse files Browse the repository at this point in the history
* feat: rocket server

* chore: rationalise ports

* feat: metadata & wallets rocket endpoint + e2e

* chore: up version client package

* chore: add rocket to CI

* fix: rm tty from ci

* chore: debugging

* chore: more debugging

* chore: try chown in CI

* fix: rocket docket tag
  • Loading branch information
8e8b2c authored Apr 29, 2024
1 parent 9e7c440 commit 7a79b9d
Show file tree
Hide file tree
Showing 43 changed files with 1,718 additions and 44 deletions.
44 changes: 39 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,31 @@ jobs:
path: workdir
overwrite: true

build-rocket:
name: Build Rocket
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: scripts/build_rocket_builder.sh
- name: Cargo build in docker
run: |
docker run -i \
-v "$(pwd):/proj" \
-w /proj rocket-builder bash -c \
"cargo build --release --package game_identity_rocket_server"
- run: ls -l target
# - run: ls -l target/release
- run: whoami
- run: sudo chown -R $(whoami) target
- name: Ready artifact dir
run: mkdir artifact && mv target/release/game_identity_rocket_server artifact/
- uses: actions/upload-artifact@v4
if: always()
with:
name: rocket
path: artifact
overwrite: true

dna-tests:
name: DNA Tests
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -82,7 +107,9 @@ jobs:
e2e:
name: Build and run end-to-end tests
needs: build-wasm
needs:
- build-wasm
- build-rocket
runs-on: ubuntu-20.04
steps:
- name: Checkout the repo
Expand All @@ -91,12 +118,19 @@ jobs:
uses: actions/download-artifact@v4
with:
name: happ_workdir
path: docker/happ_workdir
path: docker/misc_hc/happ_workdir
- name: Download rocket binary
uses: actions/download-artifact@v4
with:
name: rocket
path: rocket-artifact
- run: mv rocket-artifact/game_identity_rocket_server docker/rocket/
- name: Build images
run: |
docker build --target local-services -t game-identity/local-services docker
docker build --target authority-agent-sandbox -t game-identity/authority-agent-sandbox docker
docker build --target holo-dev-server -t game-identity/holo-dev-server docker
docker build --target local-services -t game-identity/local-services docker/misc_hc
docker build --target authority-agent-sandbox -t game-identity/authority-agent-sandbox docker/misc_hc
docker build --target holo-dev-server -t game-identity/holo-dev-server docker/misc_hc
docker build -t game-identity/rocket docker/rocket
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
node_modules
dist

docker/happ_workdir
docker/misc_hc/happ_workdir
docker/rocket/game_identity_rocket_server
Loading

0 comments on commit 7a79b9d

Please sign in to comment.