Skip to content

Commit c70ec54

Browse files
Merge pull request #130 from MikroElektronika/improvement/core-build-tool
Updated core build tool for testing release branches
2 parents 0901366 + 600be69 commit c70ec54

File tree

4 files changed

+683
-338
lines changed

4 files changed

+683
-338
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: New Core Files Build Test
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
recursiveCoreBuild:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # Ensure full history is fetched, not just the latest commit
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.x'
21+
22+
- name: Add GitHub Actions credentials
23+
run: |
24+
git config user.name github-actions
25+
git config user.email github-actions@github.com
26+
27+
- name: Fetch Main Branch
28+
run: git fetch origin main:main # Ensure the main branch is fetched
29+
30+
- name: Install Dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install -r scripts/requirements/shared.txt
34+
pip install -r scripts/requirements/databases.txt
35+
pip install colorama
36+
pip install enums
37+
sudo apt-get update
38+
sudo apt-get install $(cat scripts/requirements/recursive_build.txt)
39+
40+
- name: Install NECTO
41+
run: |
42+
export NECTO_DOWNLOAD_URL=${{ secrets.NECTO_DEV_DOWNLOAD_URL }}
43+
python -u scripts/install_necto.py
44+
45+
- name: Run Core Files Build
46+
run: |
47+
python -u scripts/recursive_build.py
48+
49+
- name: Archive test results
50+
uses: actions/upload-artifact@v4
51+
if: always()
52+
with:
53+
name: test-results
54+
path: /home/runner/test_results

.github/workflows/recursiveBuild.yaml

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)