-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
80 additions
and
4 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,11 @@ | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Lint | ||
run: cargo fmt --all -- --check | ||
- name: Build | ||
run: cargo build |
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,55 @@ | ||
run-name: Release ${{ github.ref_name }} | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build --release | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bin-linux | ||
path: ./target/release/jsonfilter | ||
|
||
build-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build --release | ||
- name: Upload binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bin-windows | ||
path: ./target/release/jsonfilter.exe | ||
|
||
create-release: | ||
needs: | ||
- build-linux | ||
- build-windows | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Linux binary | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: bin-linux | ||
- name: Download Windows binary | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: bin-windows | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
jsonfilter | ||
jsonfilter.exe |
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
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