-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] set up ci to be able to release binaries
- Loading branch information
Showing
7 changed files
with
120 additions
and
7 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,20 @@ | ||
{ | ||
"outputs": { | ||
"limelightctl": { | ||
"platforms": { | ||
"macos-aarch64": { | ||
"regex": "^limelightctl-aarch64-apple-darwin.zst$", | ||
"path": "limelightctl" | ||
}, | ||
"linux-x86_64": { | ||
"regex": "^limelightctl-x86_64-unknown-linux-gnu.zst$", | ||
"path": "limelightctl" | ||
}, | ||
"windows-x86_64": { | ||
"regex": "^limelightctl-x86_64-pc-windows-gnu.exe.zst$", | ||
"path": "limelightctl.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: DotSlash | ||
|
||
on: | ||
workflow_run: | ||
workflows: [release] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
generate-dotslash-files: | ||
name: Generating and uploading DotSlash files | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- uses: facebook/dotslash-publish-release@v1 | ||
# This is necessary because the action uses | ||
# `gh release upload` to publish the generated DotSlash file(s) | ||
# as part of the release. | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# Additional file that lives in your repo that defines | ||
# how your DotSlash file(s) should be generated. | ||
config: .github/workflows/dotslash-config.json | ||
# Tag for the release to to target. | ||
tag: ${{ github.event.workflow_run.head_branch }} |
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,60 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
release-build-linux-windows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
run: sudo apt-get install -y gcc-mingw-w64 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: aarch64-apple-darwin, x86_64-apple-darwin, x86_64-unknown-linux-gnu, x86_64-pc-windows-gnu | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build | ||
run: cargo build --release | ||
--target x86_64-unknown-linux-gnu | ||
--target x86_64-pc-windows-gnu | ||
- name: Compress outputs | ||
run: | | ||
zstd -z target/x86_64-pc-windows-gnu/release/limelightctl.exe -o limelightctl-x86_64-pc-windows-gnu.exe.zst | ||
zstd -z target/x86_64-unknown-linux-gnu/release/limelightctl -o limelightctl-x86_64-unknown-linux-gnu.zst | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux+windows | ||
path: 'limelightctl-*' | ||
|
||
release-build-macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: aarch64-apple-darwin | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build | ||
run: cargo build --release | ||
--target aarch64-apple-darwin | ||
- name: Compress outputs | ||
run: | | ||
zstd -z target/aarch64-apple-darwin/release/limelightctl -o limelightctl-aarch64-apple-darwin.zst | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos-arm64 | ||
path: 'limelightctl-*' | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [release-build-linux-windows, release-build-macos] | ||
steps: | ||
- uses: softprops/action-gh-release@v2 | ||
- uses: actions/download-artifact@v4 | ||
- uses: softprops/action-gh-release@v2 | ||
name: Create release | ||
with: | ||
files: '*/limelightctl-*' |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
edition = "2024" | ||
edition = "2021" | ||
group_imports = "StdExternalCrate" | ||
imports_granularity = "Item" |