This commit is contained in:
qitas 2021-05-17 11:39:02 +08:00
parent 0933043237
commit bc579b71b0
2 changed files with 21 additions and 57 deletions

View File

@ -1,16 +1,9 @@
name: CI name: project
on: on:
push: push:
branches: paths:
- master - 'project/**'
# on:
# push:
# paths:
# - 'src/**'
# pull_request:
# paths:
# - 'src/**'
jobs: jobs:
CodeCheck: CodeCheck:
@ -50,7 +43,15 @@ jobs:
path: codecheck.txt path: codecheck.txt
build: build:
runs-on: ubuntu-latest strategy:
fail-fast: false
matrix:
items:
- "JTAG"
- "jump_to_bl"
- "si5351"
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps: steps:
- name: Check out - name: Check out
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -66,43 +67,13 @@ jobs:
- name: Build project - name: Build project
if: success() if: success()
working-directory: project/JTAG working-directory: project
run: | run: |
make make -C ${{ matrix.items }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
if: success()
with: with:
name: sdcc_project name: build_project
path: project/JTAG path: project/${{ matrix.items }}
# - name: Download
# working-directory: src
# run: |
# wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
# tar -xf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
# - name: Build
# working-directory: src
# run: |
# mkdir build && cd build
# # cmake -DMCU_TYPE=MM32F031 -D CROSS_COMPILER_PATH=../gcc-arm-none-eabi-10-2020-q4-major .. && make
# # mkdir -p ./output && cp *.elf "$_"
# # make clean
# - name: Build
# working-directory: src
# run: |
# mkdir build && cd build
# cmake -DMCU_TYPE=MM32F031 -D CROSS_COMPILER_PATH=../gcc-arm-none-eabi-10-2020-q4-major ..
# - name: output
# run: |
# mkdir src/output
# - name: Action build
# uses: Qful/cmake-action@master
# with:
# source-dir: src
# build-dir: src/output
# parallel: 8

View File

@ -1,16 +1,9 @@
name: SDCC_4.0.0 name: template
on: on:
push: push:
branches: paths:
- master - 'src/**'
- github_actions
tags:
- '*'
pull_request:
branches:
- master
- github_actions
jobs: jobs:
build: build:
@ -34,4 +27,4 @@ jobs:
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: sdcc_template name: sdcc_template
path: src/template path: src/template/out