Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
Signed-off-by: tritu <tri_tu@163.com>
  • Loading branch information
tritu authored Jul 23, 2024
1 parent fd5e269 commit e28deaa
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Generate Go Sum

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'

- name: Create go.mod file
run: |
echo "module temp-go-project" > go.mod
echo "go 1.16" >> go.mod
echo "require (" >> go.mod
echo " github.com/tritu/utls v1.6.7" >> go.mod
echo ")" >> go.mod
- name: Run go mod tidy
run: go mod tidy

- name: Display go.sum
run: cat go.sum

0 comments on commit e28deaa

Please sign in to comment.