mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-29 14:09:58 +00:00
38 lines
791 B
YAML
38 lines
791 B
YAML
name: Go build for Linux
|
|
on: [push, pull_request]
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.25.6
|
|
id: go
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Linux build
|
|
run: |
|
|
make
|
|
|
|
- name: Upload Linux build
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: linux-amd64
|
|
path: |
|
|
doh-client/doh-client
|
|
doh-server/doh-server
|
|
|
|
- name: Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
# A directory to store and save the cache
|
|
path: ~/go/pkg/mod
|
|
# An explicit key for restoring and saving the cache
|
|
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}
|