Skip to content

Commit

Permalink
Update release-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnavi authored Dec 27, 2024
1 parent 9b92f44 commit f0bcec9
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Change Cargo.toml version
run: |
VERSION="${{ github.event.inputs.version }}-build${{ needs.get_build_number.outputs.build_number }}"
sed -i "s/^version[ ]*=[ ]*\"[^\"]*\"/version = \"${VERSION}\"/" Cargo.toml
echo "Updated version in Cargo.toml:"
grep "^version" Cargo.toml
- name: Build
run: cargo build --release --target x86_64-unknown-linux-gnu

Expand All @@ -50,8 +57,13 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
repository: hahnavi/komandan

- name: Change Cargo.toml version
run: |
VERSION="${{ github.event.inputs.version }}-build${{ needs.get_build_number.outputs.build_number }}"
sed -i "s/^version[ ]*=[ ]*\"[^\"]*\"/version = \"${VERSION}\"/" Cargo.toml
echo "Updated version in Cargo.toml:"
grep "^version" Cargo.toml
- name: Add target aarch64-unknown-linux-gnu
run: rustup target add aarch64-unknown-linux-gnu
Expand Down Expand Up @@ -82,7 +94,7 @@ jobs:
release:
runs-on: ubuntu-22.04
needs: [build-x86_64, build-aarch64]
needs: [get_build_number, build-x86_64, build-aarch64]
permissions:
contents: write
steps:
Expand Down

0 comments on commit f0bcec9

Please sign in to comment.