This repository was archived by the owner on Aug 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (74 loc) · 2.37 KB
/
build-release.yml
File metadata and controls
84 lines (74 loc) · 2.37 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build - Commit
on:
push:
tags:
- '*'
jobs:
preload:
name: 'Preload Board Setup'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@master
- name: Setup Environment
run: .ci/setup-env
env:
CHROMEOS_STABILIZE_VERSION: release-R76-12239.B
BOARD_ARCH: amd64
- name: Setup Board
run: |
source $HOME/.profile
cp -vRf ./overlay-* build/chromiumos-${CHROMEOS_STABILIZE_VERSION}/src/overlays/
cd build/chromiumos-${CHROMEOS_STABILIZE_VERSION}/
cros_sdk --download -- setup_board --board=maru-${BOARD_ARCH}
env:
CHROMEOS_STABILIZE_VERSION: release-R76-12239.B
BOARD_ARCH: amd64
- name: Workaround Permissions for chroots
run: sudo chown -R $(id -u):0 build/chromiumos-${CHROMEOS_STABILIZE_VERSION}/chroot/
env:
CHROMEOS_STABILIZE_VERSION: release-R76-12239.B
BOARD_ARCH: amd64
- uses: actions/upload-artifact@master
with:
name: cros-build-data
path: build/
build:
name: Build (AMD64)
needs: preload
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@master
with:
name: cros-build-data
- name: Setup Environment
run: wget -qO - https://git.io/Je3Q6 | sh
- name: Build Packages
run: |
source $HOME/.profile
cd build/chromiumos-$CHROMEOS_STABILIZE_VERSION/
cros_sdk --download -- ./build_packages --nowithdebug --board=maru-$BOARD_ARCH
env:
CHROMEOS_STABILIZE_VERSION: release-R76-12239.B
BOARD_ARCH: amd64
- uses: actions/upload-artifact@master
with:
name: cros-to-finalize
path: build/
finalize:
name: Finalize (AMD64)
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@master
with:
name: cros-to-finalize
- name: Setup Environment
run: wget -qO - https://git.io/Je3Q` | sh
- name: Build Image
run: |
source $HOME/.profile
cd build/chromiumos-$CHROMEOS_STABILIZE_VERSION/
cros_sdk --download -- ./build_image --board=maru-$BOARD_ARCH
env:
CHROMEOS_STABILIZE_VERSION: release-R76-12239.B
BOARD_ARCH: amd64