Skip to content

Commit fc71aac

Browse files
XECDesignnaushir
authored andcommitted
Add a Github workflow to generate release tarballs
1 parent e934bfa commit fc71aac

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/gen_orig.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Generate source release tarball
2+
run-name: Generating source release tarball
3+
on:
4+
push:
5+
tags: # vX.Y.Z
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
workflow_dispatch:
8+
jobs:
9+
publish_tarball:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Install dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y meson pkgconf libboost-log-dev libboost-thread-dev nlohmann-json3-dev
18+
- name: Check out repository code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # Required for 'git describe' to work
22+
- name: Generate tarball
23+
run: |
24+
meson setup build
25+
meson dist --no-tests --include-subprojects -C build
26+
- name: Release tarball
27+
uses: softprops/action-gh-release@v1
28+
with:
29+
files: build/meson-dist/*.tar.xz
30+
- if: failure()
31+
run: cat build/meson-logs/meson-log.txt

0 commit comments

Comments
 (0)