Skip to content

Commit

Permalink
add action debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemefan committed Feb 6, 2025
1 parent 055883f commit 64e38aa
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI-debug
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
openEuler-latest-cmake-cann:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-24.04-arm
strategy:
matrix:
cann:
- '8.0.rc3.beta1-910b-openeuler22.03-py3.10'
device:
- 'ascend910b3'
build:
- 'Release'
container: ascendai/cann:${{ matrix.cann }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Dependencies
run: |
yum update -y
yum install -y git gcc gcc-c++ make cmake
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
19 changes: 1 addition & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,24 +482,7 @@ jobs:
- name: Dependencies
run: |
yum update -y
yum install -y git gcc gcc-c++ make cmake unzip sudo passwd screen
- name: Start SSH via ngrok
uses: P3TERX/ssh2actions@main
with:
mode: ngrok
env:
# After sign up on the https://ngrok.com
# You can find this token here: https://dashboard.ngrok.com/auth/your-authtoken
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}

# ngrok server region [us, eu, au, ap, sa, jp, in] (optional, default: us)
# You can find this server region here: https://ngrok.com/docs#global-locations
NGROK_REGION: us

# This password you will use when authorizing via SSH
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}

yum install -y git gcc gcc-c++ make cmake
- name: Build
run: |
Expand Down

0 comments on commit 64e38aa

Please sign in to comment.