diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 9f086125..d3b896fb 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -45,5 +45,8 @@ jobs: test-submit: uses: ./.github/workflows/test-examples.yml + with: + CHIPFLOW_BACKEND_VERSION: 'branch-main' + CHIPFLOW_API_ORIGIN: "https://build-staging.chipflow.org" secrets: - CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}} + CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY_STAGING }} diff --git a/.github/workflows/test-examples.yml b/.github/workflows/test-examples.yml index 0c3232be..46925993 100644 --- a/.github/workflows/test-examples.yml +++ b/.github/workflows/test-examples.yml @@ -2,6 +2,15 @@ name: Reusable workflow to test everything in chipflow-examples works on: workflow_call: + inputs: + CHIPFLOW_BACKEND_VERSION: + required: false + type: string + default: 'branch-main' + CHIPFLOW_API_ORIGIN: + required: false + type: string + default: 'https://build.chipflow.org' secrets: CHIPFLOW_API_KEY: required: true @@ -66,3 +75,6 @@ jobs: pdm run chipflow silicon submit --wait $DRY env: CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}} + CHIPFLOW_API_ORIGIN: ${{ inputs.CHIPFLOW_API_ORIGIN }} + CHIPFLOW_BACKEND_VERSION: ${{ inputs.CHIPFLOW_BACKEND_VERSION }} +