forked from google/android-cuttlefish
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 1.47 KB
/
artifacts.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
name: Artifacts
on:
pull_request:
paths:
- '.github/workflows/artifacts.yaml'
- 'tools/buildimage/**'
push:
branches:
- main
jobs:
export-debs:
runs-on: ubuntu-22.04
container:
image: debian@sha256:4cb3f4198e4af2d03dffe6bfa4f3686773596494ef298f3882553d52e885634b # debian:bullseye-20240110
steps:
- name: apt update
run: apt update -y && apt upgrade -y
- name: install sudo
run: apt install -y sudo
- name: Checkout repository
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
- name: Build debs
run: bash build_debs.sh
- name: Build debs.tar
run: find . -name 'cuttlefish-*.deb' -print0 | tar -cvf debs.tar --null --files-from -
- name: Publish debs.tar
uses: actions/upload-artifact@v3
with:
name: debs
path: debs.tar
export-gce-image:
needs: export-debs
runs-on: ubuntu-22.04
steps:
- name: Free space
run: rm -rf /opt/hostedtoolcache
- name: Checkout repository
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
- name: Download debs.tar
uses: actions/download-artifact@v3
with:
name: debs
- name: Untar debs.tar
run: tar -xf debs.tar
- name: Build image
run: bash tools/buildimage/main.sh
- name: Publish image
uses: actions/upload-artifact@v3
with:
name: image_gce_debian11_amd64
path: image.tar.gz