78 lines
2.3 KiB
YAML
Raw Normal View History

2021-10-10 12:17:54 +08:00
name: CI
2021-10-06 22:37:29 +08:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
2021-10-09 01:22:48 +08:00
core:
2021-10-06 22:37:29 +08:00
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
2021-10-08 10:40:47 +08:00
runs-on: ubuntu-latest
2021-10-06 22:37:29 +08:00
steps:
- uses: actions/checkout@v2
2021-10-08 10:48:36 +08:00
2021-10-06 22:46:11 +08:00
- name: PULL_CORE
run: cd ${{github.workspace}}/port/linux && bash pull-core.sh
2021-11-06 19:44:22 +08:00
- name: CHMOD
run: cd ${{github.workspace}}/port/linux/package/pikascript && chmod +x ./rust-msc-latest-linux
2021-10-06 22:37:29 +08:00
2021-11-06 19:44:22 +08:00
- name: INIT
2021-10-06 22:40:43 +08:00
run: cd ${{github.workspace}}/port/linux && bash init.sh
- name: TEST
2021-10-06 22:37:29 +08:00
# Build your program with the given configuration
2021-10-17 18:27:46 +08:00
run: cd ${{github.workspace}}/port/linux && bash gtest.sh
2021-10-06 22:37:29 +08:00
2021-10-09 10:39:02 +08:00
bsp:
2021-10-08 22:52:53 +08:00
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ryanwinter/arm-none-eabi-gcc@v2.0.1
with:
# GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
release: '9-2019-q4'
2021-10-09 10:39:02 +08:00
- name: stm32f103c8-beforeMake
2021-10-08 22:56:13 +08:00
run: cd ${{github.workspace}}/bsp/stm32f103c8/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
2021-10-08 22:52:53 +08:00
2021-12-11 19:06:30 +08:00
# - name: stm32f103c8-make
# run: cd ${{github.workspace}}/bsp/stm32f103c8 && make
2021-10-08 22:52:53 +08:00
2021-10-09 10:39:02 +08:00
- name: stm32g030c8-beforeMake
2021-10-09 10:13:47 +08:00
run: cd ${{github.workspace}}/bsp/stm32g030c8/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
2021-10-09 10:12:41 +08:00
2021-11-24 11:10:16 +08:00
# - name: stm32g030c8-make
# run: cd ${{github.workspace}}/bsp/stm32g030c8 && make
2021-10-09 10:12:41 +08:00
2021-10-09 10:39:02 +08:00
- name: stm32g070cb-beforeMake
2021-10-09 10:13:47 +08:00
run: cd ${{github.workspace}}/bsp/stm32g070cb/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
2021-10-09 08:43:54 +08:00
2021-12-11 19:06:30 +08:00
# - name: stm32g070cb-make
# run: cd ${{github.workspace}}/bsp/stm32g070cb && make
2021-10-09 08:43:54 +08:00
2021-10-09 01:22:48 +08:00
- name: stm32g030-bootloader
run: cd ${{github.workspace}}/bsp/PikaPi_Zero/bootloader && make
packageManager-windows:
2021-10-08 10:40:47 +08:00
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: PACKAGE_MANAGER
run: cd ${{github.workspace}}/tools/pikaPackageManager && go run main.go
2021-10-08 10:45:36 +08:00
2021-10-08 10:48:36 +08:00