Skip to content

Commit

Permalink
pls work
Browse files Browse the repository at this point in the history
  • Loading branch information
S0l4RIS9uk committed Sep 30, 2024
1 parent efeb759 commit ddc50f3
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/orch-rs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Rust
with:
working-directory: ./orch-rs
on:
push:
branches: [ "v0-cli" ]
pull_request:
branches: [ "v0-cli" ]

env:
CARGO_TERM_COLOR: always

Expand All @@ -24,34 +21,34 @@ jobs:
runner: macos-latest
target: x86_64-apple-darwin
command: cargo
- name: macos-amd64
runner: macos-latest
target: x86_64-apple-darwin
comand: cargo
- name: win-amd64
runner: windows-latest
target: x86_64-pc-windows-msvc
command: cargo

steps:

defaults:
run:
working-directory: ./orch-rs

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.target }}"

- name: Setup Cache
uses: Swatinem/rust-cache@v2

- name: Install Cross
if: matrix.command == 'cross'
shell: bash
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm cross
- name: Build Binary
run: ${{ matrix.command }} build --verbose --locked --release --target ${{ matrix.target }}

Expand All @@ -62,13 +59,13 @@ jobs:
if [[ "${{ matrix.runner }}" == "windows-latest" ]]; then
BIN_SUFFIX=".exe"
fi
# The built binary output location
BIN_OUTPUT="target/${{ matrix.target }}/release/${PROJECT_NAME}${BIN_SUFFIX}"
# Define a better name for the final binary
BIN_RELEASE="${PROJECT_NAME}-${{ matrix.name }}${BIN_SUFFIX}"
BIN_RELEASE_VERSIONED="${PROJECT_NAME}-${{ github.ref_name }}-${{ matrix.name }}${BIN_SUFFIX}"
# Move the built binary where you want it
mv "${BIN_OUTPUT}" "./releases/${BIN_RELEASE}"
mv "${BIN_OUTPUT}" "./releases/${BIN_RELEASE}"

0 comments on commit ddc50f3

Please sign in to comment.