Skip to content

Commit

Permalink
Add CI for 4.10_hc branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fasano committed Nov 27, 2023
1 parent 4b035eb commit 194d71e
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Compile and publish kernels

on:
push:
branches:
- fd4.10
- 4.10_hc

jobs:
build:
runs-on: panda-arc

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build
run: |
bash docker_build.sh
time tar -czvf kernels-latest.tar.gz binaries
- name: Save package
uses: actions/upload-artifact@v3
with:
name: kernels-latest.tar.gz
path: kernels-latest.tar.gz

- name: Create release
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: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./kernels-latest.tar.gz
asset_name: kernels-latest.tar.gz
asset_content_type: application/gzip
- name: Publish release
uses: StuYarrow/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}
19 changes: 19 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check that the code compiles

on:
pull_request:
branches:
- fd4.10
- 4.10_hc

jobs:
build:
runs-on: panda-arc

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build
run: |
bash docker_build.sh

0 comments on commit 194d71e

Please sign in to comment.