Skip to content

Commit

Permalink
add automatic release
Browse files Browse the repository at this point in the history
Signed-off-by: hyx0329 <hyx0329@163.com>
  • Loading branch information
hyx0329 committed Oct 17, 2022
1 parent ecbe7e8 commit c818c76
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/automatic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build ready-to-use ArchLinux image for AllWinner D1

on:
push:
tags:
- 'r*'

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Fetch repo
uses: actions/checkout@v3

- name: Prepare environment
run: |
sudo apt update && sudo apt install -y \
build-essential coreutils git bash \
gawk cpio swig \
parted \
gzip zstd xz-utils \
flex bison openssl libssl-dev \
autoconf llvm \
gcc-riscv64-linux-gnu \
arch-install-scripts \
qemu-user-static binfmt-support \
libncurses-dev libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev
- name: Build and compress system image
run: |
make \
IMAGE="archlinux-d1-${{ github.event.commits[0].id }}.img" \
SHELL="/bin/bash" \
EXPKGS="networkmanager" \
image \
&& xz -z "archlinux-d1-${{ github.event.commits[0].id }}.img"
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "*.img.xz,output/*"
body: "# Automatic Release"

0 comments on commit c818c76

Please sign in to comment.