Skip to content

Commit

Permalink
Build all targets (#53)
Browse files Browse the repository at this point in the history
* Build all targets

* Fix syntax error

* Fix two actions calling, fix source error
  • Loading branch information
Kampfkarren authored Nov 21, 2019
1 parent 9fb0da2 commit a87daeb
Showing 1 changed file with 49 additions and 3 deletions.
52 changes: 49 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Build selene
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
generate:
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -17,5 +23,45 @@ jobs:
- name: Upload
uses: actions/upload-artifact@v1
with:
name: selene
name: selene-windows
path: release
build_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Build (Lightweight)
run: |
source $HOME/.cargo/env
cargo build --locked --release --verbose --bin selene --no-default-features
mkdir release/
mv ./target/release/selene ./release/selene-light
- name: Build (All features)
run: |
source $HOME/.cargo/env
cargo build --locked --release --bin selene --all-features
mv ./target/release/selene ./release/selene
- name: Upload
uses: actions/upload-artifact@v1
with:
name: selene-macos
path: release
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build (Lightweight)
run: |
cargo build --locked --release --verbose --bin selene --no-default-features
mkdir release/
mv ./target/release/selene ./release/selene-light
- name: Build (All features)
run: |
cargo build --locked --release --bin selene --all-features
mv ./target/release/selene ./release/selene
- name: Upload
uses: actions/upload-artifact@v1
with:
name: selene-linux
path: release

0 comments on commit a87daeb

Please sign in to comment.