Skip to content

Commit

Permalink
Merge pull request #8 from jrr/ci
Browse files Browse the repository at this point in the history
Initial CI config for GitHub Actions
  • Loading branch information
haimgel authored Sep 4, 2020
2 parents c7e8313 + bf72733 commit 9f3ff9e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build

on: [push]

jobs:
build_mac:
runs-on: macos-latest

defaults:
run:
working-directory: MacOS

steps:
- uses: actions/checkout@v2
- name: Build
run: xcodebuild -scheme display_switch -configuration release -derivedDataPath .build build
- uses: actions/upload-artifact@v1
with:
name: mac
path: MacOS/.build/Build/Products/release/display_switch

build_windows:
runs-on: windows-latest

defaults:
run:
working-directory: Windows

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose --release
- name: Run tests
run: cargo test --verbose
- uses: actions/upload-artifact@v1
with:
name: windows
path: Windows/target/release/display_switch.exe
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![build](https://github.com/haimgel/display-switch/workflows/build/badge.svg)

# Turn a $30 USB switch into a full-featured KVM

This utility watches for USB device connect/disconnect events and switches monitor inputs via DDC/CI. This turns
Expand Down

0 comments on commit 9f3ff9e

Please sign in to comment.