From 194d71e66b63abd40f1eabca8a4a18bf0608978d Mon Sep 17 00:00:00 2001 From: Andrew Fasano Date: Mon, 27 Nov 2023 13:28:47 -0500 Subject: [PATCH] Add CI for 4.10_hc branch --- .github/workflows/build.yml | 54 +++++++++++++++++++++++++++++++++++++ .github/workflows/tests.yml | 19 +++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000000..8605a62cb8477b --- /dev/null +++ b/.github/workflows/build.yml @@ -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/publish-release@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + id: ${{ steps.create_release.outputs.id }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000000000..b2cc9b8e40b68e --- /dev/null +++ b/.github/workflows/tests.yml @@ -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