Skip to content

src v7.2.1

src v7.2.1 #47

Workflow file for this run

name: Generate release
# Controls when the workflow will run
on:
release:
types: [published]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
genrelease:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: ghcr.io/kreatolinux/builder:latest
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update cache on every commit
uses: actions/cache@v4
with:
path: /var/cache/kpkg/archives
key: binary-cache-${{ github.run_id }}
restore-keys: |
binary-cache
- name: build (amd64)
run: |
IS_ACTIONS=y sh $GITHUB_WORKSPACE/scripts/build-ci.sh init
export PATH=$PATH:$HOME/.nimble/bin
cd /tmp/
SRC_VERSION=${GITHUB_REF_NAME#v}
wget "https://github.com/kreatolinux/src/archive/refs/tags/$GITHUB_REF_NAME.tar.gz"
tar -xvf "$GITHUB_REF_NAME.tar.gz"
cd "src-$SRC_VERSION"
sh build.sh -i -p "kpkg"
sh build.sh -c
cd ..
tar -czvf "/tmp/src-$GITHUB_REF_NAME-dist.tar.gz" "src-$SRC_VERSION"
- name: Upload Release
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
with:
files: /tmp/src-${{ github.ref_name }}-dist.tar.gz