Skip to content

Commit

Permalink
Attempt to initialize GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jerinphilip committed Sep 17, 2023
1 parent f6150e9 commit 520e02b
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .ci/xiaomi-cereus.prompt
@@ -0,0 +1,21 @@
pmws
edge
xiaomi
cereus
y
armv7
Xiaomi
Redmi 6
2018
handset
n
y
mtkclient
jp
console
n
vim
y
en_US
xiaomi-cereus
y
21 changes: 21 additions & 0 deletions .ci/xiaomi-cereus.prompt.keys
@@ -0,0 +1,21 @@
workspace
channel
vendor
codename
new-device?
arch
Manufacturer
Name
Year of Release
Type
Hardware Keyboard?
External Memory?
Flash method: fastboot, mtkclient, ?
user
UI: console, gnome..?
Additional change them?
Extra Packages
TimeZone use host?
Locale
Hostname
Build outdated packages?
60 changes: 60 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,60 @@
name: "main"
on:
push:
branches:
- master
tags:
- "v*.*.*"
pull_request:
branches:
- '**'

jobs:
e2e:
name: "e2e"
runs-on: "ubuntu-latest"

steps:


- name: Install dependencies
run: |
git clone https://git.sr.ht/~postmarketos/pmbootstrap
mkdir -p $HOME/.local/bin
sudo ln -s "$PWD/pmbootstrap/pmbootstrap.py" /usr/bin/pmbootstrap
pmbootstrap --version
- name: Write configuration file
run: |
wget https://raw.githubusercontent.com/jerinphilip/pmaports/${{github.sha}}/.ci/xiaomi-cereus.prompt
chmod +x cereus-configure.sh
- name: Initialize
run: |
cat xiaomi-cereus.prompt | pmbootstrap init
cat $HOME/.config/pmbootstrap.cfg
- name: Swap active branch in workspace pmaports
run: |
cd pmws/cache_git/pmaports
rm -rv device/testing/{linux,device}-xiaomi-cereus
git remote add jp https://github.com/${{github.repository}}
git fetch jp -a
git checkout xiaomi-cereus
- name: Build
run: |
pmbootstrap -v --details-to-stdout build linux-xiaomi-cereus
- name: Install
run: |
pmbootstrap -v --details-to-stdout install
- name: Upload logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: build-artifacts
path: |-
pmws/log.txt

0 comments on commit 520e02b

Please sign in to comment.