Skip to content

Commit

Permalink
Test build nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Jun 21, 2024
1 parent 52f32c3 commit 77831b1
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,27 +119,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Extract version
id: version
if: runner.os != 'Windows'
- name: Extract version1
id: version1
if: github.event_name == 'workflow_run'
run: |
if [ "${{ github.event_name == 'workflow_run' }}" = "true" ]; then
VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2)
echo version=v$VERSION-nightly >> $GITHUB_OUTPUT
else
echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
fi
- name: Extract version
VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2)
echo version=v$VERSION-nightly >> $GITHUB_OUTPUT
- name: Extract version2
id: version2
if: github.event_name != 'workflow_run'
run: |
echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
- name: Set version
id: version
if: runner.os == 'Windows'
run: |
if (${{ github.event_name == 'workflow_run' }}) {
VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2)
echo version=v$VERSION-nightly >> $GITHUB_OUTPUT
} else {
echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
}
echo "version=${{ steps.version1.outputs.version }}${{ steps.version2.outputs.version }}" >> $GITHUB_OUTPUT
- name: Update musl tools
if: matrix.build-with == 'cargo' && matrix.os == 'linux'
Expand Down

0 comments on commit 77831b1

Please sign in to comment.