From 2425c6702cbbe2bc1fb1e94109581705e22ee849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Wed, 15 Nov 2023 02:55:55 +0100 Subject: [PATCH] add examples exe --- .github/workflows/release.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a5dd224..2dec10d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 * @@ -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 * @@ -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