-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial CI config for GitHub Actions
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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