From 48035c51c4193ab7cf7a4afb1df87f3f929d2d07 Mon Sep 17 00:00:00 2001 From: Fabio Belavenuto Date: Sat, 2 Jul 2022 14:26:01 -0300 Subject: [PATCH] Testing actions --- .github/workflows/main.yml | 19 +++++++++++++++---- redpill-lkm | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e1d4ef0c..7fcbfaba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,12 @@ jobs: with: submodules: recursive + # Install missing buildroot dependency + - name: Install packages + run: | + sudo apt-get update + sudo apt-get install -y libelf-dev + # Runs a set of commands using the runners shell - name: Build img id: build @@ -37,12 +43,17 @@ jobs: echo "::set-output name=VERSION::$VERSION" ./compile-lkm.sh ./img-gen.sh - mkdir /output - cp "arpl-${VERSION}.img.zip" /output # Upload img - name: Upload uses: actions/upload-artifact@v3 with: - name: Upload arpl-{{ steps.bulid.outputs.VERSION }}.img.zip - path: /output + name: Upload arpl.img + path: arpl.img + + # Publish a release if is a tag + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: arpl-{{ steps.bulid.outputs.VERSION }}.img.zip diff --git a/redpill-lkm b/redpill-lkm index f1c8ed50..52e12711 160000 --- a/redpill-lkm +++ b/redpill-lkm @@ -1 +1 @@ -Subproject commit f1c8ed508c27e0009d1567efcdae756d288d0e34 +Subproject commit 52e12711b65c99315c82b7800a787635d03a557a