Merge branch 'devel' #14
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
name: Provide development builds | |
on: | |
push: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
dev-builds: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install system dependencies | |
run: sudo apt-get update && sudo apt-get install libgtk-3-dev gcc-mingw-w64-x86-64 | |
- name: Install rustup Windows target | |
run: rustup target add x86_64-pc-windows-gnu | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Linux release build | |
run: cargo build --release --verbose | |
- name: Upload Linux release build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ocdscope-linux-x86_64 | |
path: target/release/ocdscope | |
- name: Windows release build | |
run: cargo build --release --target x86_64-pc-windows-gnu --verbose | |
- name: Upload Windows release build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ocdscope-windows-x86_64.exe | |
path: target/x86_64-pc-windows-gnu/release/ocdscope.exe | |