Skip to content

Commit

Permalink
Merge pull request #45 from Aetf/meson
Browse files Browse the repository at this point in the history
Build system overhaul
  • Loading branch information
Aetf authored Jun 14, 2022
2 parents c70a28d + 003a21b commit db4396e
Show file tree
Hide file tree
Showing 39 changed files with 876 additions and 3,346 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# The way this works is a little weird. But basically, the create-release job
# runs purely to initialize the GitHub release itself. Once done, the upload
# URL of the release is saved as an artifact.
#
# The build-release job runs only once create-release is finished. It gets
# the release upload URL by downloading the corresponding artifact (which was
# uploaded by create-release). It then builds the release executables for each
# supported platform and attaches them as release assets to the previously
# created release.
#
# The key here is that we create the release only once.
#
# Adapted from: https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/release.yml

name: release
on:
push:
# Enable when testing release infrastructure on a branch.
branches:
- build
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
create-release:
name: create-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install meson
run: pip install meson ninja
- name: Meson setup
run: meson setup builddir/
- name: Create source distribution
# no unit tests yet
run: meson dist -C builddir/ --no-tests
- name: Release
uses: softprops/action-gh-release@v1
with:
files: builddir/meson-dist/*

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ src/*.xkb.bin
src/*.vert.bin.c
src/*.frag.bin.c
src/*.xkb.bin.c
.cache/
1 change: 1 addition & 0 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This software was written by:
ysangkok <ysangkok@gmail.com>
Hoàng Đức Hiếu <github@zahe.me>
Swift Geek <swiftgeek@gmail.com>
Aetf <aetf@unlimited-code.works>

= Copyright Notice =

Expand Down
Loading

0 comments on commit db4396e

Please sign in to comment.