Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Beinsezii committed Jun 8, 2024
1 parent 48531f1 commit 1076ec2
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/build_release_master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Master Release
on: [push, workflow_dispatch]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Linux Release
run: cargo build --release
- name: Upload Linux Artifact
uses: actions/upload-artifact@v4
with:
name: linux_binary
path: target/release/linch
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build MacOs Release
run: cargo build --release
- name: Upload MacOS Artifact
uses: actions/upload-artifact@v4
with:
name: macos_binary
path: target/release/linch
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build Windows Release
run: cargo build --release
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
name: windows_exe
path: target/release/linch.exe
39 changes: 39 additions & 0 deletions .github/workflows/build_release_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Latest Release Tag
on:
push:
tags:
'*'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Linux Release
run: cargo build --release
- name: Upload Linux Artifact
uses: actions/upload-artifact@v4
with:
name: linux_binary
path: target/release/linch
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build MacOs Release
run: cargo build --release
- name: Upload MacOS Artifact
uses: actions/upload-artifact@v4
with:
name: macos_binary
path: target/release/linch
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build Windows Release
run: cargo build --release
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
name: windows_exe
path: target/release/linch.exe
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ You may export `WINIT_UNIX_BACKEND=x11` to force Linch to run in X11 mode.
## Installation
Compiled binaries are provided on the [releases tab](https://github.com/Beinsezii/linch/releases)

Additionally, stable release binaries are automatically compiled and uploaded for Linux, Windows, and MacOS with the [Build Latest Release Tag Action](https://github.com/Beinsezii/linch/actions/workflows/build_release_tag.yml)
while the latest unstable binaries are can be found in the [Build Master Release Action](https://github.com/Beinsezii/linch/actions/workflows/build_release_master.yml)


If you already have [Rust installed](https://rustup.rs/), you can build the latest release with

`cargo install --git https://github.com/Beinsezii/linch.git --tag 0.1.0`
`cargo install --git https://github.com/Beinsezii/linch.git --tag 0.4.0`

You may omit the `--tag` flag if you follow the rebel path and want the latest possibly unstable build.

Expand Down

0 comments on commit 1076ec2

Please sign in to comment.