Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 49 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,45 @@ jobs:
run: |
cargo build --release

- name: Upload-artifacts
- name: Upload-artifacts-standalone
uses: actions/upload-artifact@v4
with:
name: keystroke-display-ubuntu
path: target/release/
name: keystroke-display-standalone-ubuntu
path: |
target/release/keystroke-overlay-standalone

- name: Upload-artifacts-plugin
uses: actions/upload-artifact@v4
with:
name: keystroke-display-plugin-ubuntu
path: |
target/release/libkeystroke_overlay.so

win-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
id: cache
with:
path: C:/Program Files/obs-studio/bin/64bit/obs64.exe
key: ${{ runner.os }}-obs-studio

- name: Install OBS Studio
if: steps.cache.outputs.cache-hit != 'true'
run: choco install obs-studio

- name: Build
run: |
cargo build --release

- name: Upload-artifacts
- name: Upload-artifacts-standalone
uses: actions/upload-artifact@v4
with:
name: keystroke-display-windows
path: target/release/
name: keystroke-display-standalone-windows
path: |
target/release/keystroke-overlay-standalone.exe

- name: Upload-artifacts-plugin
uses: actions/upload-artifact@v4
with:
name: keystroke-display-plugin-windows
path: |
target/release/keystroke_overlay.dll

release:
runs-on: ubuntu-latest
Expand All @@ -61,22 +71,41 @@ jobs:
uses: actions/download-artifact@v4
with:
path: target/release/

- name: Copy overlay folder
run: |
cp -r overlay/ target/release/keystroke-display-standalone-ubuntu
cp -r overlay/ target/release/keystroke-display-plugin-ubuntu
cp -r overlay/ target/release/keystroke-display-standalone-windows
cp -r overlay/ target/release/keystroke-display-plugin-windows

- name: Create ZIP files for Ubuntu
- name: Create ZIP files for Ubuntu Standalone
run: |
cd target/release/keystroke-display-ubuntu
zip -r keystroke-display-ubuntu.zip *
cd target/release/keystroke-display-standalone-ubuntu
zip -r keystroke-display-standalone-ubuntu.zip *

- name: Create ZIP files for Ubuntu Plugin
run: |
cd target/release/keystroke-display-plugin-ubuntu
zip -r keystroke-display-plugin-ubuntu.zip *

- name: Create ZIP files for Windows
- name: Create ZIP files for Windows Standalone
run: |
cd target/release/keystroke-display-standalone-windows
zip -r keystroke-display-standalone-windows.zip *

- name: Create ZIP files for Windows Plugin
run: |
cd target/release/keystroke-display-windows
zip -r keystroke-display-windows.zip *
cd target/release/keystroke-display-plugin-windows
zip -r keystroke-display-plugin-windows.zip *

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GH_TOKEN }}
files: |
target/release/keystroke-display-ubuntu/keystroke-display-ubuntu.zip
target/release/keystroke-display-windows/keystroke-display-windows.zip
target/release/keystroke-display-standalone-ubuntu/keystroke-display-standalone-ubuntu.zip
target/release/keystroke-display-plugin-ubuntu/keystroke-display-plugin-ubuntu.zip
target/release/keystroke-display-standalone-windows/keystroke-display-standalone-windows.zip
target/release/keystroke-display-plugin-windows/keystroke-display-plugin-windows.zip
2 changes: 0 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Rust



on:
push:
branches: ['main']
Expand Down