forked from dvdhrm/kmscon
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Aetf/meson
Build system overhaul
- Loading branch information
Showing
39 changed files
with
876 additions
and
3,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,4 @@ src/*.xkb.bin | |
src/*.vert.bin.c | ||
src/*.frag.bin.c | ||
src/*.xkb.bin.c | ||
.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.