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

Commit 1209d4a

Browse files
authored
Add manual gh action config
1 parent 692744d commit 1209d4a

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/main.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)