-
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
1 parent
d064af4
commit e1044d8
Showing
3 changed files
with
101 additions
and
20 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,77 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- name: Build and package | ||
run: | | ||
nix build .#native | ||
cp result/bin/browser_terminal browser_terminal_macos | ||
- name: Upload macos artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos | ||
path: browser_terminal_macos | ||
|
||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- name: Build and package | ||
run: | | ||
nix build .#native | ||
cp result/bin/browser_terminal browser_terminal_linux | ||
- name: Upload linux artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux | ||
path: browser_terminal_linux | ||
|
||
build-extension: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- name: Build and package | ||
run: nix build .#extension | ||
- name: Upload extension artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: extensions | ||
path: result/*.zip | ||
|
||
release: | ||
needs: [build-macos, build-linux, build-extension] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download macos artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: macos | ||
path: macos | ||
- name: Download linux artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: linux | ||
path: linux | ||
- name: Download extension artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: extensions | ||
path: extensions | ||
- name: Create release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
linux/browser_terminal_linux | ||
macos/browser_terminal_macos | ||
extensions/* |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= | ||
github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= |