JuNest Stock release #31
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: JuNest Builder | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: | |
image: docker.io/archlinux/archlinux:latest | |
options: --user 1000:1000 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build | |
if: always() | |
run: | | |
sudo pacman --noconfirm -Syy | |
sudo pacman --noconfirm -Syu | |
sudo pacman --noconfirm -S base-devel git | |
#sysctl -w kernel.unprivileged_userns_clone=1 | |
#sysctl -w user.max_user_namespaces=49152 | |
git clone https://github.com/fsquillace/junest.git ~/.local/share/junest | |
export PATH=~/.local/share/junest/bin:$PATH | |
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 }} | |