Skip to content

Commit

Permalink
add examples exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégoire Henry committed Nov 15, 2023
1 parent f8a5a0e commit 2425c67
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ jobs:
- name: Install SDL2
run: sudo apt install -y libsdl2-dev

- name: Build
- name: Build kalast
run: cargo build -r && strip target/release/kalast

- name: Build examples
run: cargo build -r --example viewer-picker && strip target/release/examples/viewer-picker


- name: Make bundle
run: |
mkdir -p bin/ubuntu
cp -r examples bin/ubuntu
cp -r target/release/kalast bin/ubuntu
cp target/release/kalast bin/ubuntu
cp target/release/examples/viewer-picker bin/ubuntu/examples/viewer-picker
cd bin/ubuntu
cp -r examples/thermal/cfg .
tar cvzf kalast-${{ github.ref_name }}-ubuntu.tar.gz *
Expand Down Expand Up @@ -64,14 +69,18 @@ jobs:
- name: Install SDL2
run: brew install SDL2

- name: Build
- name: Build kalast
run: cargo build -r && strip target/release/kalast

- name: Build examples
run: cargo build -r --example viewer-picker && strip target/release/examples/viewer-picker

- name: Make bundle
run: |
mkdir -p bin/macos
cp -r examples bin/macos
cp -r target/release/kalast bin/macos
cp target/release/kalast bin/macos
cp target/release/examples/viewer-picker bin/macos/examples/viewer-picker
cd bin/macos
cp -r examples/thermal/cfg .
tar cvzf kalast-${{ github.ref_name }}-macos.tar.gz *
Expand Down Expand Up @@ -104,14 +113,19 @@ jobs:
cp include/win/SDL2.dll .
cp include/win/SDL2.lib .
- name: Build
- name: Build kalast
run: cargo build -r

- name: Build examples
run: cargo build -r --example viewer-picker


- name: Make bundle
run: |
mkdir -p bin/win
cp -r examples bin/win
cp -r target/release/kalast.exe bin/win
cp target/release/kalast.exe bin/win
cp target/release/examples/viewer-picker.exe bin/ubuntu/examples/viewer-picker
mv SDL2.dll bin/win
mv SDL2.lib bin/win
cp include/kalast.ico bin/win
Expand Down

0 comments on commit 2425c67

Please sign in to comment.