-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (44 loc) · 1.32 KB
/
node_runner.yml
File metadata and controls
54 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Go
on:
push:
branches: [ '*' ]
tags: [ 'v*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install MinGW-w64
run: sudo apt-get update && sudo apt-get install -y mingw-w64
- name: Extract version
id: version
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "version=dev-${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
fi
- name: Update Version.txt
run: |
sed -i "s/version = .*/version = ${{ steps.version.outputs.version }}/" Framework/Version.txt
sed -i "s/date = .*/date = $(date +'%b %d, %Y')/" Framework/Version.txt
- name: Build
working-directory: ./Apps/node_runner
run: make all
env:
VERSION: ${{ steps.version.outputs.version }}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: ./Apps/node_runner/build/*
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: ./Apps/node_runner/build/*
generate_release_notes: true