Skip to content

Commit

Permalink
Add CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed Jul 24, 2022
1 parent 0fdf330 commit f5cb737
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
push:
workflow_dispatch:
schedule:
- cron: '0 9 * * *'

env:
TZ: Asia/Shanghai

jobs:
build_deploy:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install -y arch-install-scripts debootstrap
- name: Build
run: |
export ROOTFS_PATH="$(pwd)/rootfs"
export MIRROR="http://azure.archive.ubuntu.com/ubuntu"
sudo --preserve-env ./bootstrap.sh
- name: Compress with XZ
run: |
sudo tar -cJvf rootfs.tar.xz rootfs
sudo chmod 777 rootfs.tar.xz
- uses: actions/upload-artifact@v3
with:
name: rootfs
path: rootfs.tar.xz

0 comments on commit f5cb737

Please sign in to comment.