28 lines
741 B
YAML
28 lines
741 B
YAML
name: Build
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: golang:latest
|
|
options: --network host
|
|
steps:
|
|
- run: |
|
|
apt-get update
|
|
apt-get install -y nodejs npm
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
- name: List files in the repository
|
|
run: |
|
|
ls ${{ gitea.workspace }}
|
|
- run: go mod tidy
|
|
- run: go build .
|
|
- name: Upload Build Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: serialToWebsocket
|
|
path: .
|
|
- run: echo "This job's status is ${{ job.status }}."
|