Skip to content

Commit

Permalink
WIP: use version numbers in build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Mar 11, 2024
1 parent e2626fe commit 0f388ed
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/check_lint_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,25 @@ jobs:
command: build
args: --release

- name: Set version number environment variable and output filename
run: |
cargo --version
THUNDER_APP_VERSION=cargo metadata | jq -e '.packages | map(select(.name == "thunder_app") | .version) | .[0]'
OUTPUT_FILENAME="thunder-${THUNDER_APP_VERSION}-x86_64-unknown-linux-gnu"
echo "THUNDER_APP_VERSION=$THUNDER_APP_VERSION" >> "$GITHUB_ENV"
echo "OUTPUT_FILENAME=$OUTPUT_FILENAME" >> "$GITHUB_ENV"
- name: 'Set filename for release binary'
run: |
pushd "target/release"
mv "thunder_app" "thunder-x86_64-unknown-linux-gnu"
ln -s "thunder_app" "${OUTPUT_FILENAME}"
popd
- name: 'Upload Artifacts (thunder)'
uses: actions/upload-artifact@v2
with:
name: thunder-x86_64-unknown-linux-gnu
path: target/release/thunder-x86_64-unknown-linux-gnu
name: ${{ env.OUTPUT_FILENAME }}
path: target/release/${{ env.OUTPUT_FILENAME }}
if-no-files-found: error

build-macos:
Expand Down

0 comments on commit 0f388ed

Please sign in to comment.