forked from renesas-rz/rzg2_flash_writer
-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (66 loc) · 2.3 KB
/
build.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: build
on:
push:
branches: [ "solidrun" ]
pull_request:
branches: [ "solidrun" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
docker_publish:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Build and publish a Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: docker/Dockerfile
build_images:
needs: docker_publish
runs-on: "ubuntu-latest"
container:
image: ghcr.io/solidrun/rzg2_flash_writer:latest
strategy:
matrix:
device: [RZG2UL, RZG2LC, RZG2L, RZV2L]
ddr_size: [512MB_1PCS, 1GB_1PCS, 2GB_1PCS]
include:
- device: RZG2UL
swizzle: T3BC
- device: RZG2LC
swizzle: T3BC
- device: RZG2L
swizzle: T1BC
- device: RZV2L
swizzle: T1BC
steps:
- uses: actions/checkout@v4
- name: Build firmware
run: |
CROSS_COMPILE=aarch64-none-linux-gnu- make DEVICE=${{ matrix.device }} \
DDR_TYPE=DDR4 \
DDR_SIZE=${{ matrix.ddr_size }} \
SWIZZLE=${{ matrix.swizzle }} \
FILENAME_ADD=_${{ matrix.device }}_HUMMINGBOARD -f makefile.linaro
- name: Copy firmware
run: |
mkdir -p s3
cp AArch64_output/Flash_Writer_SCIF_${{ matrix.device }}_HUMMINGBOARD_DDR4_${{ matrix.ddr_size }}.mot s3
- name: Upload to GitHub
uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: Flash_Writer_SCIF_${{ matrix.device }}_HUMMINGBOARD_DDR4_${{ matrix.ddr_size }}.mot
path: s3/Flash_Writer_SCIF_${{ matrix.device }}_HUMMINGBOARD_DDR4_${{ matrix.ddr_size }}.mot
- name: Upload to S3
uses: shallwefootball/[email protected]
if: github.event_name == 'push'
with:
aws_key_id: ${{ secrets.IMAGES_S3_ACCESS }}
aws_secret_access_key: ${{ secrets.IMAGES_S3_SECRET }}
aws_bucket: ${{ secrets.IMAGES_S3_BUCKET }}
endpoint: ${{ secrets.IMAGES_S3_HOST }}
source_dir: s3
destination_dir: RZ/FlashWriter/