Skip to content

Commit

Permalink
Create executables.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mishankov committed Nov 15, 2024
1 parent c5ecf10 commit 3e48e14
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/executables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Executables

on:
push:
branches: [main]
tags: ["v*.*.*"]
pull_request:
branches: [main]


jobs:
build-backend:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, windows, macos]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: 1.23
- run: go build -o ./build/ -v ./server

- name: Upload Linux executable
uses: actions/upload-artifact@v4
with:
name: web-tail-${{ matrix.os }}
path: build
retention-days: 5

build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm install
- run: npm run build:js

- name: Upload Linux executable
uses: actions/upload-artifact@v4
with:
name: public
path: dist
retention-days: 5

0 comments on commit 3e48e14

Please sign in to comment.