-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fcd42a
commit 4412e6e
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: VTune hotspots analysis (docker) | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
vtune-analysis: | ||
runs-on: ubuntu-latest | ||
env: | ||
PRCOMMITSHA : ${{ github.event.pull_request.head.sha }} | ||
|
||
steps: | ||
# Step 1: Checkout the code from the repository | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
# Step 2: Build the Docker image | ||
- name: Build Docker Image | ||
run: | | ||
docker build -t your-image-name . | ||
# Step 3: Run Docker container, create an artifact, and upload it to GitHub | ||
- name: Create Artifact and Upload to GitHub Releases | ||
run: | | ||
docker run --rm your-image-name sh -c " \ | ||
tar -czf artifact.tar.gz hotspots_summary.html && \ | ||
echo $GITHUB_TOKEN | gh auth login --with-token && \ | ||
gh release upload v1.0.0 hotspots.tar.gz" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ARTIFACT_TOKEN }} # Token must have repo access |