Build rootfs #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build rootfs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 8 1 * *' | |
permissions: | |
contents: write | |
jobs: | |
build-rootfs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
name: "Build rootfs" | |
container: | |
image: archlinux | |
options: --privileged -w /work -v ./:/work | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check version | |
run: echo "ARCH_VERSION=$(date +%Y%m%d)" >> $GITHUB_ENV | |
- name: Build without WSLg | |
run: ./create-rootfs.sh --output archlinux-rootfs.tar.gz | |
- name: Build with WSLg | |
run: ./create-rootfs.sh --with-wslg --output archlinux-rootfs-wslg.tar.gz | |
- name: Upload | |
uses: softprops/[email protected] | |
with: | |
tag_name: "${{ env.ARCH_VERSION }}" | |
files: | | |
archlinux-rootfs.tar.gz | |
archlinux-rootfs.tar.gz.sha256sum | |
archlinux-rootfs-wslg.tar.gz | |
archlinux-rootfs-wslg.tar.gz.sha256sum | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |