Bump kernel to get dyndev devfs memory bugfix #77
Workflow file for this run
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: Compile and release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
# Only publish on tags. run git tag vX and git push origin vX | |
runs-on: panda-arc | |
permissions: | |
contents: write | |
steps: | |
- name: Install git | |
run: sudo apt-get -qq update -y && sudo apt-get -qq install git -y | |
- uses: actions/checkout@v4 # Clones to $GITHUB_WORKSPACE. NOTE: this requires git > 2.18 (not on ubuntu 18.04 by default) to get .git directory and submodules | |
with: | |
fetch-depth: 0 | |
#submodules: 'true' | |
# Instead of getting submodules with checkout, we can do it manually to control depth. | |
# We don't want a full Linux history | |
- name: Pull kernel source | |
run: git submodule update --init --depth 1 | |
- name: Build Kernel | |
run: ./build.sh | |
- name: Save package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: kernels-latest.tar.gz | |
path: kernels-latest.tar.gz | |
- name: Create release | |
if: startsWith(github.ref, 'refs/tags/v') | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: release_${{ github.sha }} | |
release_name: Release ${{ github.ref }} | |
body: | | |
Release @${{ github.ref }} | |
draft: true | |
prerelease: false | |
- name: Publish release | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: kernels-latest.tar.gz | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag_name: ${{ github.ref }} |