Skip to content

Nightly Vinix rebuild #550

Nightly Vinix rebuild

Nightly Vinix rebuild #550

Workflow file for this run

name: Nightly Vinix rebuild
on:
schedule:
- cron: '0 0 * * *'
jobs:
vinix-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Unshallow repo tags
run: git fetch --prune --unshallow --tags
- name: Check if build is necessary
run: test "$(git tag --points-at HEAD)" = ""
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install make diffutils curl git rsync xorriso -y
- name: Enable user namespaces
run: sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
#- name: Build full distro and ISO
# run: PKGS_TO_INSTALL='*' make all
#- name: Rename vinix.iso
# run: mv vinix.iso vinix-nightly-full-$(date +'%Y%m%d').iso
- name: Build base distro and ISO
run: make all
- name: Rename vinix.iso
run: mv vinix.iso vinix-nightly-base-$(date +'%Y%m%d').iso
- name: Set TAG_DATE variable
run: echo "TAG_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Tag new nightly release
run: git tag nightly-$TAG_DATE && git push --tags
- name: Create nightly release
uses: softprops/action-gh-release@v2
with:
name: Nightly build ${{ env.TAG_DATE }}
tag_name: nightly-${{ env.TAG_DATE }}
body: Image of an up to date Vinix nightly build.
files: |
vinix-nightly-*.iso
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}