Skip to content

Commit

Permalink
Separate selene and selene-light into different zips (#176)
Browse files Browse the repository at this point in the history
* Update build.yml

* Separate selene and selene-light into different zips

* Upload artifact from target/release

* Fix target path not found
  • Loading branch information
y3th authored Nov 12, 2020
1 parent c9a357d commit 00cb659
Showing 1 changed file with 34 additions and 28 deletions.
62 changes: 34 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,63 +11,69 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build (Lightweight)
run: |
cd selene
cargo build --locked --release --verbose --no-default-features
New-Item release -ItemType "directory"
Move-Item ..\target\release\selene.exe .\release\selene-light.exe
- name: Build (All features)
run: |
cd selene
cargo build --locked --release --all-features
Move-Item ..\target\release\selene.exe .\release\selene.exe
- name: Upload
- name: Upload selene
uses: actions/upload-artifact@v1
with:
name: selene-windows
path: ./selene/release
path: ./target/release/selene.exe
- name: Build (Lightweight)
run: |
cd selene
cargo build --locked --release --verbose --no-default-features
- name: Upload selene-light
uses: actions/upload-artifact@v1
with:
name: selene-light-windows
path: ./target/release/selene.exe
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
cd selene
cargo build --locked --release --verbose --no-default-features
mkdir release/
mv ../target/release/selene ./release/selene-light
- name: Build (All features)
run: |
source $HOME/.cargo/env
cd selene
cargo build --locked --release --all-features
mv ../target/release/selene ./release/selene
- name: Upload
- name: Upload selene
uses: actions/upload-artifact@v1
with:
name: selene-macos
path: ./selene/release
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
path: ./target/release/selene
- name: Build (Lightweight)
run: |
source $HOME/.cargo/env
cd selene
cargo build --locked --release --verbose --no-default-features
mkdir release/
mv ../target/release/selene ./release/selene-light
- name: Upload selene-light
uses: actions/upload-artifact@v1
with:
name: selene-light-macos
path: ./target/release/selene
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build (All features)
run: |
cd selene
cargo build --locked --release --all-features
mv ../target/release/selene ./release/selene
- name: Upload
- name: Upload selene
uses: actions/upload-artifact@v1
with:
name: selene-linux
path: ./selene/release
path: ./target/release/selene
- name: Build (Lightweight)
run: |
cd selene
cargo build --locked --release --verbose --no-default-features
- name: Upload selene-light
uses: actions/upload-artifact@v1
with:
name: selene-light-linux
path: ./target/release/selene

0 comments on commit 00cb659

Please sign in to comment.