Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
codeitlikemiley committed Dec 16, 2023
1 parent eff1ef5 commit b2aa457
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,28 @@ jobs:
echo '[workspace]' >> my_workspace/Cargo.toml
echo 'resolver = "2"' >> my_workspace/Cargo.toml
echo 'members = ["server", "services/auth"]' >> my_workspace/Cargo.toml
echo 'exclude = ["templates"]' >> my_workspace/Cargo.toml
mkdir -p my_workspace/templates
mkdir -p my_workspace/services/auth
- name: Clone Auth Service Repository
- name: Clone Auth Service Template
run: |
git clone https://github.com/codeitlikemiley/service_template my_workspace/services/auth
git clone https://github.com/codeitlikemiley/service_template my_workspace/templates/auth
- name: Generate Auth Service from Local Template
uses: cargo-generate/cargo-generate-action@v0.18.5
with:
name: auth
template: ./templates/auth
arguments: "--branch main --define service_description=default --define rpc_method=make"
working-directory: my_workspace

- name: Generate Server
uses: cargo-generate/cargo-generate-action@v0.18.5
with:
name: ${{ env.PROJECT_NAME }}
arguments: "--branch main --define server_name=default --define service_name=auth"
working-directory: my_workspace

- name: Build Workspace
run: |
Expand Down

0 comments on commit b2aa457

Please sign in to comment.