This repository was archived by the owner on Mar 9, 2025. It is now read-only.
Commit 23172ef Art Aquino
committed
1 parent 9b14628 commit 23172ef Copy full SHA for 23172ef
File tree 2 files changed +45
-5
lines changed
2 files changed +45
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Go - Build and Test (CUDA)
2
2
3
- on :
4
- push :
5
- branches : [ "cicd" ]
6
- pull_request :
7
- branches : [ "cicd" ]
3
+ on : workflow_dispatch
8
4
9
5
jobs :
10
6
build :
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments