Skip to content

See if core is fine #125

See if core is fine

See if core is fine #125

Workflow file for this run

on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Upload Release Asset
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
release:
name: Create Release
runs-on: ubuntu-22.04
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
draft: false
prerelease: false
allowUpdates: true
build:
name: Upload Release Asset
runs-on: ubuntu-latest
needs: [release]
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
debian-release: [testing, stable, sid]
revision: ["3or4"]
board: [pi]
tempdir: [/tmp]
mountpoint: [/mnt]
include:
- board: jetson-nano
revision: 300
experimental: true
tempdir: /tmpdir
mountpoint: /tmpdir/jetson_driver_package/Linux_for_Tegra/rootfs
- debian-release: stable
experimental: false
- debian-release: testing
experimental: true
- debian-release: sid
experimental: true
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project # This would actually build your project, using zip for an example artifact
id: build
env:
RELEASE: ${{ matrix.debian-release }}
REVISION: ${{ matrix.revision }}
BOARD: ${{ matrix.board }}
MOUNTPOINT: ${{ matrix.mountpoint }}
TEMPDIR: ${{ matrix.tempdir }}
GRAPHICAL: false
CI: true
run: |
sudo apt update
sudo apt install qemu gparted debootstrap qemu-user-static qemu-utils schroot debian-keyring debian-archive-keyring equivs
bash -x ./build.sh
zip debian-${{ matrix.board }}-${{ matrix.revision }}-${{ matrix.debian-release }}.zip debian-${{ matrix.board }}.img
- name: Start SSH via Ngrok
id: ngrok
if: ${{ failure() }}
run: curl -sL https://gist.githubusercontent.com/ClashTheBunny/ac7ca189e1f8ab9eb5686662412a4cce/raw/56291cdd2111f6dc64accf6293157b326f5d1e53/debug-github-actions.sh | bash
env:
# After sign up on the https://ngrok.com/
# You can find this token here: https://dashboard.ngrok.com/get-started/setup
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
# This password you will use when authorizing via SSH
USER_PASS: ${{ secrets.USER_PASS }}
- name: Sleep 1 hour
if: ${{ failure() }}
run: sleep 1h
- name: Upload Release Asset
id: upload-release-asset
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./debian-${{ matrix.board }}-${{ matrix.revision }}-${{ matrix.debian-release }}.zip
asset_name: debian-${{ matrix.board }}-${{ matrix.revision }}-${{ matrix.debian-release }}.zip
asset_content_type: application/zip