From 185ca6186998430ba3aa32540ee7763c26b66963 Mon Sep 17 00:00:00 2001 From: Marek Koza Date: Fri, 5 Apr 2024 15:52:39 +0200 Subject: [PATCH] actions: Add main-yml action configuration --- .github/workflows/main.yml | 39 ++++++++++++++++++++++++++++++++++++++ requirements.txt | 3 ++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6401a51 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,39 @@ +on: + push: + branches: + - develop + - feature/* + workflow_dispatch: + +jobs: + build: + name: build + runs-on: arm-none-eabi-gcc + steps: + + - name: Setup arm-none-eabi-gcc path + run: echo "/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH + + - name: Checkout + uses: actions/checkout@v4 + + - run: | + git fetch --prune --unshallow --no-recurse-submodules + git branch develop + git branch -u origin/develop develop + git branch master + git branch -u origin/master master + + - name: Install python venv & dependencies + run: | + python -m venv venv + source venv/bin/activate + pip install -r requirements.txt + echo PATH=$PATH >> $GITHUB_ENV + echo VIRTUAL_ENV=$VIRTUAL_ENV >> $GITHUB_ENV + + - name: Select the port + run: defconfig config/nwdaq_br28_fdc_defconfig + + - name: Compile + run: scons firmware diff --git a/requirements.txt b/requirements.txt index 1c447e0..71cc8f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,10 @@ gitdb==4.0.5 GitPython==3.1.14 pyaml==20.4.0 -PyYAML==5.4.1 +PyYAML==6.0.1 six==1.15.0 smmap==3.0.5 kconfiglib==14.1.0 protobuf==3.15.3 SCons==4.1.0.post1 +tqdm==4.57.0