Skip to content

Commit 38f466e

Browse files
author
AxelHowe
committed
feat: add lab0
0 parents  commit 38f466e

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/lab0.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: lab0
5+
6+
on:
7+
push:
8+
paths:
9+
- 'lab0/**'
10+
11+
jobs:
12+
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-go@v4
19+
with:
20+
go-version-file: 'lab0/go.mod'
21+
cache: false
22+
23+
- name: Run
24+
working-directory: 'lab0'
25+
run: go run .

lab0/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module lab0
2+
3+
go 1.23

lab0/lab0.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("Hello World")
7+
}

0 commit comments

Comments
 (0)