Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit 23172ef

Browse files
author
Art Aquino
committed
Adds manual gh actions workflow
1 parent 9b14628 commit 23172ef

File tree

2 files changed

+45
-5
lines changed

2 files changed

+45
-5
lines changed

.github/workflows/build.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Go - Build and Test (CUDA)
22

3-
on:
4-
push:
5-
branches: [ "cicd" ]
6-
pull_request:
7-
branches: [ "cicd" ]
3+
on: workflow_dispatch
84

95
jobs:
106
build:

.github/workflows/build_manual.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Go - Build and Test (CUDA)
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Set up Go
14+
uses: actions/setup-go@v5
15+
with:
16+
go-version: '1.21.x'
17+
18+
- name: Install CUDA Toolkit
19+
run: |
20+
# Install CUDA Toolkit (replace with your specific installation commands)
21+
sudo apt-get update
22+
sudo apt-get install -y cuda-toolkit-11.8
23+
24+
- name: Install CMake
25+
run: sudo apt-get install -y cmake
26+
27+
- name: Set Build Environment
28+
run: |
29+
echo "GOOS=linux" >> $GITHUB_ENV
30+
echo "GOARCH=amd64" >> $GITHUB_ENV
31+
32+
- name: Build with Makefile
33+
run: make all
34+
35+
- name: Create Artifacts
36+
run: |
37+
mkdir -p artifacts
38+
cp eternal artifacts/
39+
40+
- name: Upload Artifacts
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: build-artifacts
44+
path: artifacts

0 commit comments

Comments
 (0)