-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (38 loc) · 1.06 KB
/
mmaps_main.yaml
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
name: build mmaps
on:
push:
branches:
- main
jobs:
build:
name: Build mmaps
runs-on: ubuntu-latest
steps:
- name: Checkout gd32-rs
uses: actions/checkout@v4
with:
path: gd32-rs
- name: Checkout mmaps
uses: actions/checkout@v4
with:
repository: gd32-rust/gd32-rs-mmaps
ssh-key: ${{ secrets.MMAPS_KEY }}
path: gd32-rs-mmaps
- name: Install Python dependencies
run: |
pip3 install --user setuptools wheel
pip3 install --user svdtools
- name: Put pip binary directory into path
run: echo "~/.local/bin" >> $GITHUB_PATH
- name: Build and publish
run: |
cd gd32-rs
COMMIT=$(git rev-parse HEAD)
make -j2 mmaps
mv mmaps/* ../gd32-rs-mmaps/
cd ../gd32-rs-mmaps
git config user.name "gd32-rs builder"
git config user.email "[email protected]"
git add .
git commit --allow-empty -m "gd32-rs main $COMMIT"
git push origin main