Skip to content

chore: update codename and apt source #160

chore: update codename and apt source

chore: update codename and apt source #160

Workflow file for this run

name: build rootfs
on:
push:
branches: [ 'master' ]
paths:
- 'build.sh'
- 'config/**'
- 'version.txt'
pull_request:
branches: [ 'master' ]
paths:
- 'build.sh'
- 'config/**'
- 'version.txt'
workflow_dispatch:
jobs:
build:
name: Build tar file
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
# 这个值是保留给系统的空间大小,之前设置太小,总会在安装依赖或者编译过程中报设备空间不足的错误而导致编译失败
root-reserve-mb: 4096
swap-size-mb: 512
remove-dotnet: 'true'
remove-android: 'true'
remove-codeql: 'true'
- name: Checkout repository
uses: actions/checkout@v4
- name: update source and add binfmts
run: |
sudo apt update -y && sudo apt install qemu-user-static qemu-user arch-test systemd
sudo systemctl restart systemd-binfmt
- name: pull deepin docker
run: docker pull linuxdeepin/deepin:beige
- name: Run build.sh
run: |
docker run --rm \
--privileged \
-v "${{ github.workspace }}:/workspace" \
-w /workspace \
linuxdeepin/deepin \
/bin/bash -c "./build.sh"
- name: Read version
id: read_version
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
- name: Upload file to release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ env.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ env.VERSION }}"
prerelease: true
title: "v${{ env.VERSION }}"
files: |
rootfs/deepin-wsl-rootfs-amd64.tar.gz
rootfs/deepin-wsl-rootfs-arm64.tar.gz
rootfs/deepin-docker-rootfs-amd64.tar.gz
rootfs/deepin-docker-rootfs-arm64.tar.gz
rootfs/deepin-docker-rootfs-riscv64.tar.gz
rootfs/deepin-docker-rootfs-loong64.tar.gz
rootfs/deepin-docker-rootfs-i386.tar.gz