mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Set RA_TARGET at job level
This commit is contained in:
parent
58b6763f20
commit
2707dc384d
1 changed files with 9 additions and 11 deletions
20
.github/workflows/release.yaml
vendored
20
.github/workflows/release.yaml
vendored
|
@ -18,6 +18,8 @@ jobs:
|
||||||
dist-windows:
|
dist-windows:
|
||||||
name: dist (Windows)
|
name: dist (Windows)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
env:
|
||||||
|
RA_TARGET: x86_64-pc-windows-msvc
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -39,8 +41,6 @@ jobs:
|
||||||
|
|
||||||
- name: Dist
|
- name: Dist
|
||||||
run: cargo xtask dist
|
run: cargo xtask dist
|
||||||
env:
|
|
||||||
RA_TARGET: x86_64-pc-windows-msvc
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
@ -51,6 +51,8 @@ jobs:
|
||||||
dist-ubuntu:
|
dist-ubuntu:
|
||||||
name: dist (Ubuntu 16.04)
|
name: dist (Ubuntu 16.04)
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
|
env:
|
||||||
|
RA_TARGET: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -71,18 +73,14 @@ jobs:
|
||||||
- name: Dist
|
- name: Dist
|
||||||
if: github.ref == 'refs/heads/release'
|
if: github.ref == 'refs/heads/release'
|
||||||
run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER
|
run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER
|
||||||
env:
|
|
||||||
RA_TARGET: x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- name: Dist
|
- name: Dist
|
||||||
if: github.ref != 'refs/heads/release'
|
if: github.ref != 'refs/heads/release'
|
||||||
run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly
|
run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly
|
||||||
env:
|
|
||||||
RA_TARGET: x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- name: Nightly analysis-stats check
|
- name: Nightly analysis-stats check
|
||||||
if: github.ref != 'refs/heads/release'
|
if: github.ref != 'refs/heads/release'
|
||||||
run: target/x86_64-unknown-linux-gnu/release/rust-analyzer analysis-stats .
|
run: target/${{ env.RA_TARGET }}/release/rust-analyzer analysis-stats .
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
@ -93,6 +91,8 @@ jobs:
|
||||||
dist-macos-latest:
|
dist-macos-latest:
|
||||||
name: dist (MacOS latest)
|
name: dist (MacOS latest)
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
env:
|
||||||
|
RA_TARGET: x86_64-apple-darwin
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -107,8 +107,6 @@ jobs:
|
||||||
|
|
||||||
- name: Dist
|
- name: Dist
|
||||||
run: cargo xtask dist
|
run: cargo xtask dist
|
||||||
env:
|
|
||||||
RA_TARGET: x86_64-apple-darwin
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
@ -119,6 +117,8 @@ jobs:
|
||||||
dist-macos-11:
|
dist-macos-11:
|
||||||
name: dist (MacOS 11.0)
|
name: dist (MacOS 11.0)
|
||||||
runs-on: macos-11.0
|
runs-on: macos-11.0
|
||||||
|
env:
|
||||||
|
RA_TARGET: aarch64-apple-darwin
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -134,8 +134,6 @@ jobs:
|
||||||
|
|
||||||
- name: Dist
|
- name: Dist
|
||||||
run: cargo xtask dist
|
run: cargo xtask dist
|
||||||
env:
|
|
||||||
RA_TARGET: aarch64-apple-darwin
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
|
Loading…
Reference in a new issue