Skip to content

Commit 7cb08de

Browse files
committed
add simple release workflow
This will release an x86 binary, which should be suitable for basic testing. Signed-off-by: vsoch <[email protected]>
1 parent 0e7fee5 commit 7cb08de

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/release.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: compatlib tag and release
2+
3+
on:
4+
# On demand releases
5+
workflow_dispatch:
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Set tag
15+
run: |
16+
today=$(printf '%(%Y-%m-%d)T\n' -1)
17+
echo $today
18+
echo "tag=${today}" >> ${GITHUB_ENV}
19+
20+
- uses: actions/checkout@v4
21+
- name: Setup Go
22+
uses: actions/setup-go@v3
23+
with:
24+
go-version: ^1.22
25+
- name: Install dependencies
26+
run: |
27+
export PATH=$PWD/bin:$PATH
28+
mkdir -p ./bin
29+
go build -o ./bin/fs-gen cmd/fs/fs.go
30+
go build -o ./bin/compat-gen cmd/gen/gen.go
31+
go build -o ./bin/compat-server cmd/server/server.go
32+
go build -o ./bin/compat-cli cmd/client/client.go
33+
go build -o ./bin/fs-record cmd/record/record.go
34+
35+
- name: Release
36+
uses: softprops/action-gh-release@v1
37+
with:
38+
name: compat-lib ${{ env.tag }}
39+
tag_name: ${{ env.tag }}
40+
body: "compat-lib release ${{ env.tag }}"
41+
files: |
42+
bin/fs-gen
43+
bin/compat-gen
44+
bin/compat-server
45+
bin/compat-cli
46+
bin/fs-record
47+
env:
48+
GITHUB_REPOSITORY: compspec/compat-lib
49+

0 commit comments

Comments
 (0)