From ad56eff73db759826e3ad38da4e4aee2aff7706a Mon Sep 17 00:00:00 2001 From: Redecorating <69827514+Redecorating@users.noreply.github.com> Date: Sat, 10 Jul 2021 18:04:18 +1000 Subject: [PATCH] add CI There may be issues if it can't upload a 1.6GB artifact. May have to use the split zip version if it fails. --- .github/workflows/CI.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..297d9ac --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,43 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + [push] + + # Allows you to run this workflow manually from the Actions tab + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Build + run: sudo ./build.sh + + # Runs a set of commands using the runners shell + - name: print sha256sum + run: cat output/sha256 + + - name: Generate Tag + id: tag + run: | + VER=$(egrep ^KERNEL_VERSION build.sh|cut -d= -f2) + echo Version is $VER + echo "::set-output name=tag::${VER}" + + - name: Upload iso artifact + uses: actions/upload-artifact@v2 + with: + name: mbp-ubuntu-${{ steps.tag.outputs.tag }} + path: ${{ github.workspace }}/*.iso +