Update Cargo.toml #28
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: Rust | |
on: [push] | |
jobs: | |
build-linux-x64: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install latest rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
override: true | |
- name: Build | |
run: rustup default stable && cargo clean && cargo build --release --target=x86_64-unknown-linux-gnu && strip target/x86_64-unknown-linux-gnu/release/sd-req && mv target/x86_64-unknown-linux-gnu/release/sd-req target/x86_64-unknown-linux-gnu/release/sd-req_linux_x64 | |
- name: Upload linux-amd64 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: sd-req_linux_x64 | |
path: target/x86_64-unknown-linux-gnu/release/sd-req_linux_x64 | |
- name: Build x86 | |
run: rustup default stable && sudo apt-get install gcc-multilib libssl-dev && export OPENSSL_DIR=usr/local/ssl && rustup target install i686-unknown-linux-gnu && cargo clean && cargo build --release --target=i686-unknown-linux-gnu && strip target/i686-unknown-linux-gnu/release/sd-req && mv target/i686-unknown-linux-gnu/release/sd-req target/i686-unknown-linux-gnu/release/sd-req_linux_x86 | |
- name: Upload linux-x86 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: sd-req_linux_x86 | |
path: target/i686-unknown-linux-gnu/release/sd-req_linux_x86 | |
build-win-x64: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install latest rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
override: true | |
- name: Build | |
run: | | |
rustup default stable | |
cargo clean | |
cargo build --release | |
- name: Upload win-x64 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: sd-req_win_x64.exe | |
path: target/release/sd-req.exe | |
- name: Build | |
run: | | |
rustup default stable | |
cargo clean | |
rustup target install i686-pc-windows-msvc | |
cargo build --release --target=i686-pc-windows-msvc | |
- name: Upload win-x64 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: sd-req_win_x86.exe | |
path: target/i686-pc-windows-msvc/release/sd-req.exe | |
build-mac-x64: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install latest rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-apple-darwin | |
default: true | |
override: true | |
- name: Build for mac | |
run: rustup default stable && cargo clean && cargo build --release && strip target/release/sd-req && mv target/release/sd-req target/release/sd-req_mac_x64 | |
- name: Upload mac-x64 | |
uses: actions/upload-artifact@v2 | |
with: | |
name: sd-req_mac_x64.exe | |
path: target/release/sd-req_mac_x64 |