Skip to content

JuNest Stock release #25

JuNest Stock release

JuNest Stock release #25

name: JuNest Builder
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
container:
image: archlinux
steps:
- uses: actions/checkout@v4
- name: build
if: always()
run: |
pacman --noconfirm -Syy
pacman --noconfirm -Syu
pacman --noconfirm -S base-devel git wget
export DBIN_INSTALL_DIR="/usr/local/bin"
wget -qO- "https://raw.githubusercontent.com/xplshn/dbin/master/stubdl" | sh -s -- --install "/usr/local/bin/dbin" add bwrap
sysctl -w kernel.unprivileged_userns_clone=1
git clone https://github.com/fsquillace/junest.git ~/.local/share/junest
export PATH=~/.local/share/junest/bin:$PATH
bwrap --dev-bind-try / / --uid 0 --gid 0 -- junest build -n
mkdir dist
mv *tar.gz dist/
- name: Upload artifact
uses: actions/[email protected]
with:
name: junest-x86_64.tar.gz
path: 'dist'
release:
needs: [build]
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: junest-x86_64.tar.gz
- name: release
uses: marvinpinto/action-automatic-releases@latest
with:
title: Continuous build
automatic_release_tag: continuous
prerelease: false
draft: false
files: |
junest-x86_64.tar.gz
repo_token: ${{ secrets.GITHUB_TOKEN }}