From 671af2b352774e297413b96c1ee982c563bfebf9 Mon Sep 17 00:00:00 2001 From: Neucrack Date: Sat, 30 Mar 2024 14:52:51 +0800 Subject: [PATCH] action test --- .github/workflows/build_maixcam.yml | 18 +++++++++++------- .github/workflows/trigger_wiki.yml | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_maixcam.yml b/.github/workflows/build_maixcam.yml index 39f7df59..bf33e0f9 100755 --- a/.github/workflows/build_maixcam.yml +++ b/.github/workflows/build_maixcam.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: Build source code and doc +name: Build MaixCAM # Controls when the action will run. on: @@ -25,18 +25,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.11] # MaixCAM use 3.11 + python-version: ["3.11"] # MaixCAM use 3.11 # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - name: Build MaixPy run: | echo "-- Check python version must python 3.11 --" - python3 -c 'import sys;print(sys.version); assert sys.version_info >= (3, 11)' - python -c 'import sys;print(sys.version); assert sys.version_info >= (3, 11)' - ls -al ~/.local/bin/ - export PATH=~/.local/bin/:$PATH + python3 -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)' + python -c 'import sys;print(sys.version);assert sys.version_info >= (3, 11);assert sys.version_info < (3, 12)' + whereis python + whereis python3 + # export PATH=~/.local/bin/:$PATH # pull sipeed/MaixCDK repo here first git clone https://github.com/sipeed/MaixCDK --depth=1 export MAIXCDK_PATH=`pwd`/MaixCDK diff --git a/.github/workflows/trigger_wiki.yml b/.github/workflows/trigger_wiki.yml index eb66fda9..76e9af21 100755 --- a/.github/workflows/trigger_wiki.yml +++ b/.github/workflows/trigger_wiki.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: trigger_sipeed_wiki_build +name: trigger wiki # Controls when the action will run. on: