Merging upstream version 0.0.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5a3ffa62e4
commit
cb2e838cdf
7 changed files with 41 additions and 21 deletions
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
|
@ -24,29 +24,35 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with: {fetch-depth: 0}
|
||||
- run: sudo apt-get install -y build-essential
|
||||
- run: make CFG=${{ matrix.cfg}} -j$(nproc)
|
||||
- run: _${{ matrix.cfg }}/inotify-info
|
||||
- run: make VERBOSE=1 CFG=${{ matrix.cfg}} -j$(nproc)
|
||||
- run: |
|
||||
_${{ matrix.cfg }}/inotify-info --version
|
||||
_${{ matrix.cfg }}/inotify-info
|
||||
|
||||
build-with-zig:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with: {fetch-depth: 0}
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
key: zig-sdk-and-cache-${{ hashFiles('.github/workflows/ci.yaml') }}
|
||||
path: ~/.cache/zig
|
||||
- run: |
|
||||
wget --progress=dot:mega \
|
||||
https://ziglang.org/download/0.12.0/zig-linux-$(uname -m)-0.12.0.tar.xz
|
||||
https://ziglang.org/download/0.13.0/zig-linux-$(uname -m)-0.13.0.tar.xz
|
||||
tar -xJf zig-linux-*.tar.xz
|
||||
rm zig-linux-*.xz
|
||||
mv zig-linux-* zig-sdk
|
||||
- run: |
|
||||
make -j$(nproc) \
|
||||
make VERBOSE=1 -j$(nproc) \
|
||||
CC="zig-sdk/zig cc -target $(uname -m)-linux-musl" \
|
||||
CXX="zig-sdk/zig c++ -target $(uname -m)-linux-musl"
|
||||
- run: _release/inotify-info
|
||||
- run: |
|
||||
_release/inotify-info --version
|
||||
_release/inotify-info
|
||||
|
||||
build-with-docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
|
@ -8,15 +8,10 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Archive
|
||||
run: make inotify-info-${{ github.ref_name }}.tar.gz
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: inotify-info-${{ github.ref_name }}.tar.gz
|
||||
generate_release_notes: true
|
||||
draft: true
|
||||
prerelease: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue