diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4445412..e66dd6a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile { "name": "azure_tts", - "image": "ghcr.io/ten-framework/ten_agent_build:0.2.2", + "image": "ghcr.io/ten-framework/ten_agent_build:0.3.2", "customizations": { "vscode": { "extensions": [ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 888976c..2a55a72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: matrix: build_type: [debug, release] container: - image: ghcr.io/ten-framework/ten_agent_build:0.2.2 + image: ghcr.io/ten-framework/ten_agent_build:0.3.2 steps: - uses: actions/checkout@v4 with: @@ -48,9 +48,7 @@ jobs: - name: Build run: | - tman install - tgn gen linux x64 ${{ matrix.build_type }} -- is_clang=false - tgn build linux x64 ${{ matrix.build_type }} + task build -- BUILD_TYPE=${{ matrix.build_type }} - name: Upload artifacts uses: actions/upload-artifact@v4 diff --git a/README.md b/README.md index 9d7a350..8ce55dc 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,9 @@ TEN extension of [azure Text to speech service](https://learn.microsoft.com/en-u Only `linux/amd64` building inside container is supported at the moment. ```bash -# inside docker ghcr.io/ten-framework/ten_agent_build:0.2.2 +# inside docker ghcr.io/ten-framework/ten_agent_build:0.3.2 -tman install -tgn gen linux x64 debug -- is_clang=false && tgn build linux x64 debug -tgn gen linux x64 release -- is_clang=false && tgn build linux x64 release +task build ``` Refer to [ci](.github/workflows/ci.yml) for more details. diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..cf6bc6a --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,26 @@ +version: '3' + +tasks: + clean: + desc: clean up + cmds: + - rm -rf out .ten .gnfiles .gn compile_commands.json + + build: + desc: build, with optional 'BUILD_TYPE=debug/release' + vars: + BUILD_TYPE: '{{ .BUILD_TYPE | default "release" }}' + cmds: + - task: install + - tgn gen linux x64 {{ .BUILD_TYPE }} -- is_clang=false {{ .CLI_ARGS }} + - tgn build linux x64 {{ .BUILD_TYPE }} + + test: + desc: run tests + cmds: + - echo TODO + + install: + desc: install dependencies + cmds: + - tman install