Skip to content

Commit

Permalink
Edit: Action build condition include pr
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonyang-ee committed Oct 19, 2023
1 parent db85636 commit 130fcd6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 267 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: "Build Binary"

on:
push:
branches:
- "*"
- "!main"
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'

jobs:
github-build:
Expand Down Expand Up @@ -67,16 +76,18 @@ jobs:
name: BINARY.bin
path: ${{ github.workspace }}/build/*.bin

pr-check:
if: ${{ always() }}
Result:
runs-on: ubuntu-22.04
needs:
- github-build
- arch-build
- alpine-build
- ubuntu-build-upload
runs-on: ubuntu-latest
if: always() && needs.Skip_Checking.outputs.should_skip != 'true'
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
- name: All Tests Ok
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some Tests Failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
62 changes: 0 additions & 62 deletions Application/Inc/LED.hpp

This file was deleted.

197 changes: 0 additions & 197 deletions Application/Src/LED.cpp

This file was deleted.

1 change: 0 additions & 1 deletion cmake/SourceList.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set(source_list ${source_list}
${PROJ_PATH}/Application/Src/LED.cpp
${PROJ_PATH}/Application/Src/main.cpp
${PROJ_PATH}/Core/Src/gpio.c
${PROJ_PATH}/Core/Src/stm32l4xx_hal_msp.c
Expand Down

0 comments on commit 130fcd6

Please sign in to comment.