From b2aa457362c22ebc02e873b467c5a62dfecd970a Mon Sep 17 00:00:00 2001 From: Uriah Date: Sat, 16 Dec 2023 14:53:15 +0800 Subject: [PATCH] update build --- .github/workflows/build.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e5feb0..62e8105 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: |