forked from dreemurrs-embedded/Jumpdrive
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.19 KB
/
main.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
name: Build Flashable PocketPC JumpDrive SD Card Image
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install or Restore Required Dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: u-boot-tools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu mtools
version: 1.0
- name: Restore Download Cache
uses: actions/cache/restore@v3
with:
path: build/
key: build-dir
- name: Compile JumpDrive SD Card Image
run: make -j8 sourceparts-pocketpc.img
- name: Prepare Build Artifacts & Perform Checksum
working-directory: ./
run: |
sha256sum sourceparts-pocketpc.img > sourceparts-pocketpc.img.sha256sum
echo `sha256sum sourceparts-pocketpc.img`
cat sourceparts-pocketpc.img.sha256sum
- name: Save Download Cache
uses: actions/cache/save@v3
if: always()
with:
path: build/
key: build-dir
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: PocketPC_JumpDrive_Image
path: |
sourceparts-pocketpc.img
sourceparts-pocketpc.img.sha256sum