forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (44 loc) · 1.39 KB
/
Copy pathmakefile.yml
File metadata and controls
58 lines (44 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
CP_VERSION: "8.2.0"
MICROPY_CPYTHON3: python3.8
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/deps/submodules
with:
target: mpy-cross
- name: Setup External
uses: ./.github/actions/deps/external
- name: Install toolchain (aarch64)
if: matrix.mpy-cross == 'static-aarch64'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Install toolchain (mingw)
if: matrix.mpy-cross == 'static-mingw'
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64
- name: Build mpy-cross.${{ matrix.mpy-cross }}
run: make -C mpy-cross -j2 #-f Makefile.${{ matrix.mpy-cross }}
- name: Set output
run: |
echo >> $GITHUB_ENV "EX=${{ env[format('EX_{0}', matrix.mpy-cross)] || matrix.mpy-cross }}"
echo >> $GITHUB_ENV "OS=${{ env[format('OS_{0}', matrix.mpy-cross)] }}"
#- name: Run distcheck
# run: make fetch-tags
- name: Run sqlite
run: |
make -C mpy-cross
make fetch-tags
make -C ports/unix USER_C_MODULES=../../examples/usercmodule
ports/unix/micropython < ports/unix/usqlite_test.py