-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (46 loc) · 1.2 KB
/
mmaps_master.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: build mmaps
env:
SVDTOOLS_VERSION: 0.2.6
on:
push:
branches:
- master
jobs:
build:
name: Build mmaps
runs-on: ubuntu-18.04
env:
SVDTOOLS: svdtools
steps:
- name: Checkout lpc-pac
uses: actions/checkout@v3
with:
path: lpc-pac
- name: Checkout mmaps
uses: actions/checkout@v3
with:
repository: lpc-rs/lpc-pac-mmaps
ssh-key: ${{ secrets.MMAPS_KEY }}
path: lpc-pac-mmaps
- name: Add fictive crate
run: |
cargo init
- name: Cache dependencies
uses: Swatinem/rust-cache@v1
with:
key: svdtools-${{ env.SVDTOOLS_VERSION }}
- name: Install svdtools
run: |
cargo install svdtools --version $SVDTOOLS_VERSION
- name: Build and publish
run: |
cd lpc-pac
COMMIT=$(git rev-parse HEAD)
make -j2 mmaps
mv mmaps/* ../lpc-pac-mmaps/
cd ../lpc-pac-mmaps
git config user.name "lpc-pac builder"
git config user.email "[email protected]"
git add .
git commit --allow-empty -m "lpc-pac master $COMMIT"
git push origin main