GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BPI-Router-Images/.github/workflows/ubuntu.yml at main · jimbertools/BPI-Router-Images

Expand file tree

/

ubuntu.yml

Copy path
View runs
More file actions
More file actions

Latest commit

 

History

History
History
124 lines (111 loc) · 4.07 KB
/

ubuntu.yml

Copy path

File metadata and controls

124 lines (111 loc) · 4.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# .github/workflows/main.yml
name: Ubuntu
on:
workflow_dispatch:
inputs:
bpi-r2:
type: boolean
bpi-r64:
type: boolean
bpi-r2pro:
type: boolean
bpi-r3:
type: boolean
bpi-r4:
type: boolean
packages:
description: additional packages (separated by space)
kernel:
type: choice
description: linux kernel
options:
- 6.18
- 6.12
- 6.6
- 5.15
variant:
type: choice
description: board variant
options:
- ''
- bpi-r4-2g5
- bpi-r4pro
- bpi-r4lite
bootdevice:
type: choice
description: Bootdevice
options:
- sdmmc
- emmc
jobs:
ubuntu-gdrive-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup env
run: |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
- name: Setup cache
id: cache
uses: actions/cache@v4
with:
path: "*_arm*.tar.gz"
key: ${{ runner.os }}-chroot
restore-keys: ${{ runner.os }}-chroot
#- name: Acquire Google access token for file download
# id: google-access-token
# uses: playeveryware/action-google-access-token@v1
# with:
# credentials: ${{ secrets.CREDENTIALS_RAW }}
# scope: 'https://www.googleapis.com/auth/drive.readonly'
#- name: Download BPI-R4 kernel file
# uses: playeveryware/action-google-drive-download@v1
# with:
# token: ${{ steps.google-access-token.outputs.token }}
# file-id: 14IPr6_h0_NEe8ute6HXMUNACnHiaaab4
# path: ${{ env.R4Kernel }}
#uses: satackey/action-google-drive@v1
#with:
# skicka-tokencache-json: ${{ secrets.CREDENTIALS_RAW }}
# download-from: https://drive.google.com/file/d/14IPr6_h0_NEe8ute6HXMUNACnHiaaab4/view?usp=drive_link
# download-to: ./bpi-r4-kernel.tar.gz
- name: Install depencies
run: |
sudo apt update
sudo apt install python3 parted qemu-user-static debootstrap binfmt-support mtd-utils
- name: Build R2 Ubuntu ${{ vars.UBUNTU_DIST }} Image
if: ${{ inputs.bpi-r2 }}
run: |
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r2.conf
./buildimg.sh bpi-r2 ${{ vars.UBUNTU_DIST }} ${{ inputs.kernel }}
- name: Build R64 Ubuntu ${{ vars.UBUNTU_DIST }} Image
if: ${{ inputs.bpi-r64 }}
run: |
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r64.conf
./buildimg.sh bpi-r64 ${{ vars.UBUNTU_DIST }} ${{ inputs.kernel }}
- name: Build R2Pro Ubuntu ${{ vars.UBUNTU_DIST }} Image
if: ${{ inputs.bpi-r2pro }}
run: |
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r2pro.conf
./buildimg.sh bpi-r2pro ${{ vars.UBUNTU_DIST }} ${{ inputs.kernel }}
- name: Build R3 Ubuntu ${{ vars.UBUNTU_DIST }} Image
if: ${{ inputs.bpi-r3 }}
run: |
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r3.conf
./buildimg.sh bpi-r3 ${{ vars.UBUNTU_DIST }} ${{ inputs.kernel }}
- name: Build R4 Ubuntu ${{ vars.UBUNTU_DIST }} Image
if: ${{ inputs.bpi-r4 }}
run: |
echo -e "variant=${{ inputs.variant }}" > sourcefiles_bpi-r4.conf
#echo -e "skipkerneldownload=1\nkernelfile=${{ env.R4Kernel }}" > sourcefiles_bpi-r4.conf
echo -e "replacehostapd=1\nreplaceiperf=1" >> sourcefiles_bpi-r4.conf
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r4.conf
./buildimg.sh bpi-r4 ${{ vars.UBUNTU_DIST }} ${{ inputs.kernel }}
- name: Upload to gdrive
uses: adityak74/google-drive-upload-git-action@main
with:
credentials: ${{ secrets.CREDENTIALS }}
filename: "*.img.gz*"
folderId: ${{ secrets.FOLDERID }}
overwrite: "true" # optional boolean
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.