2021-07-23 19:37:26 -04:00
|
|
|
---
|
2022-12-20 04:29:23 -05:00
|
|
|
name: CI
|
2021-07-23 19:37:26 -04:00
|
|
|
# yamllint disable-line rule:truthy
|
2021-07-10 04:04:18 -04:00
|
|
|
on:
|
2023-02-07 17:53:34 -05:00
|
|
|
[push, workflow_dispatch]
|
2021-07-10 04:04:18 -04:00
|
|
|
|
|
|
|
jobs:
|
2022-10-21 13:12:37 -04:00
|
|
|
|
2022-10-18 09:00:39 -04:00
|
|
|
ISO:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
2022-10-21 12:46:47 -04:00
|
|
|
- uses: actions/checkout@v3
|
2022-10-18 16:36:22 -04:00
|
|
|
|
2021-07-10 04:04:18 -04:00
|
|
|
- name: Build
|
2022-11-08 00:47:41 -05:00
|
|
|
run: sudo ./build_in_docker.sh
|
2021-07-10 04:04:18 -04:00
|
|
|
|
|
|
|
- name: print sha256sum
|
2023-05-22 10:55:04 -04:00
|
|
|
run: cat output/sha256*
|
2021-07-23 19:37:26 -04:00
|
|
|
|
2021-07-10 04:04:18 -04:00
|
|
|
- name: Generate Tag
|
|
|
|
id: tag
|
|
|
|
run: |
|
|
|
|
VER=$(egrep ^KERNEL_VERSION build.sh|cut -d= -f2)
|
2022-10-18 09:00:39 -04:00
|
|
|
REL=$(grep "PKGREL=\d*" build.sh | cut -d = -f2)
|
2021-07-10 04:04:18 -04:00
|
|
|
echo Version is $VER
|
2022-10-18 12:34:10 -04:00
|
|
|
echo "isotag=${VER}-${REL}" >> $GITHUB_ENV
|
2021-07-23 19:37:26 -04:00
|
|
|
|
|
|
|
- name: Upload iso artifact
|
2021-07-10 04:04:18 -04:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-07-10 05:14:24 -04:00
|
|
|
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z01
|
2021-07-23 19:37:26 -04:00
|
|
|
path: ${{ github.workspace }}/output/*
|
2021-07-10 05:14:24 -04:00
|
|
|
|
|
|
|
- name: Instructions for putting it back together
|
2021-07-10 05:48:02 -04:00
|
|
|
run: |
|
2021-07-23 19:37:26 -04:00
|
|
|
cat << EOF
|
|
|
|
Download all the artifacts, and put them in a folder
|
|
|
|
without other files. Then run:"
|
|
|
|
unzip "*.z??.zip"
|
2022-10-18 12:34:10 -04:00
|
|
|
cat livecd-${{ env.isotag }}-t2.z?? > cd.zip
|
2021-07-10 05:48:02 -04:00
|
|
|
echo unzip cd.zip
|
2021-07-23 19:37:26 -04:00
|
|
|
EOF
|
2021-11-20 03:20:16 -05:00
|
|
|
|
2023-03-06 08:24:46 -05:00
|
|
|
- name: Compress ISO
|
|
|
|
run: |
|
|
|
|
cd ${{ github.workspace }}
|
|
|
|
mkdir ISO
|
|
|
|
mv ${{ github.workspace }}/*.iso ${{ github.workspace }}/ISO
|
|
|
|
cd ISO
|
|
|
|
ISONAME=$(ls ${{ github.workspace }}/ISO | grep .iso | rev | cut -c 5- | rev)
|
2023-03-06 09:20:38 -05:00
|
|
|
tar -czvf ${ISONAME}.tar.gz ${ISONAME}.iso
|
2023-03-06 08:24:46 -05:00
|
|
|
ls -l
|
|
|
|
|
2021-07-23 19:37:26 -04:00
|
|
|
- name: Release
|
2023-04-24 07:49:00 -04:00
|
|
|
if: github.ref == 'refs/heads/mainline'
|
2021-07-23 19:37:26 -04:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
2023-05-03 03:08:33 -04:00
|
|
|
#files: ${{ github.workspace }}/ISO/*.tar.gz
|
2023-05-22 09:07:40 -04:00
|
|
|
#files: ${{ github.workspace }}/ISO/*.iso
|
|
|
|
files: ${{ github.workspace }}/output/*
|
2022-11-08 01:08:32 -05:00
|
|
|
tag_name: v${{ env.isotag }}
|
2022-08-23 08:41:29 -04:00
|
|
|
body_path: ${{ github.workspace }}/.github/workflows/instructions.txt
|
2021-11-20 03:20:43 -05:00
|
|
|
draft: false
|
2022-07-01 08:51:17 -04:00
|
|
|
prerelease: false
|
2021-07-23 19:37:26 -04:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|