Skip to content

Commit

Permalink
Refactor build process and add version extraction step
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Sep 29, 2024
1 parent 695bb49 commit 094448d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/Ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Install jq
run: sudo apt-get install -y jq

- name: Extract version from Cargo.toml
id: extract_version
run: |
VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
echo "version=$VERSION" >> $GITHUB_OUTPUT
# - name: Build Linux binary x86_64-gnu
# run: |
# cross build --target x86_64-unknown-linux-gnu --release
Expand All @@ -44,15 +53,6 @@ jobs:
# mkdir -p build/linux-musl/
# cp target/aarch64-unknown-linux-musl/release/easy-proxy build/linux-musl/

- name: Install jq
run: sudo apt-get install -y jq

- name: Extract version from Cargo.toml
id: extract_version
run: |
VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Push binaries to release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 094448d

Please sign in to comment.