diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59a4f3ff..a0f3c793 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file