diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml deleted file mode 100644 index 55593fb28..000000000 --- a/.github/workflows/build-test-deploy.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Build, Test, and Deploy Project - -on: - # push: - workflow_dispatch: - inputs: - project: - description: 'Project to build (i.e. Demo/Blink)' - required: false - default: 'Demo/Blink' - platform: - description: 'Platform to build for (i.e. cli, stm32f767)' - required: false - default: 'cli' - -env: - DEFAULT_PROJECT: Demo/Blink - DEFAULT_PLATFORM: cli - -jobs: - build: - runs-on: self-hosted - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set effective project, platform, and sanitize project name - id: defaults - run: | - project_name="${{ github.event.inputs.project || env.DEFAULT_PROJECT }}" - platform="${{ github.event.inputs.platform || env.DEFAULT_PLATFORM }}" - sanitized_project_name=$(echo "$project_name" | sed 's/\//-/g') - - echo "Effective project: $project_name" - echo "Sanitized project name: $sanitized_project_name" - echo "Effective platform: $platform" - - echo "::set-output name=project_name::$project_name" - echo "::set-output name=sanitized_project_name::$sanitized_project_name" - echo "::set-output name=platform::$platform" - - - name: Build ${{ steps.defaults.outputs.project_name }} for ${{ steps.defaults.outputs.platform }} - run: | - cd firmware - make PROJECT=${{ steps.defaults.outputs.project_name }} PLATFORM=${{ steps.defaults.outputs.platform }} build - - deploy: - runs-on: self-hosted - needs: build - environment: deploy - steps: - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: build-artifact-${{ steps.defaults.outputs.sanitized_project_name }}-${{ steps.defaults.outputs.platform }} - path: firmware/build/${{ steps.defaults.outputs.project_name }}/${{ steps.defaults.outputs.platform }} diff --git a/.github/workflows/test-project-name.yml b/.github/workflows/test-project-name.yml deleted file mode 100644 index 1ca4222a4..000000000 --- a/.github/workflows/test-project-name.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Test Project Name - -on: -# push: - workflow_dispatch: - -jobs: - setup-project: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - -# build-project: -# uses: ./.github/workflows/reusable-build-project.yml -# with: -# project: "Demo/Blink" -# platform: "cli" - - build-projects: - strategy: - matrix: - config: - - project: "Demo/Blink" - platform: "cli" - - project: "Demo/Blink" - platform: "stm32f767" - uses: ./.github/workflows/reusable-build-project.yml - with: - project: ${{ matrix.config.project }} - platform: ${{ matrix.config.platform }}