- os: windows-latest
target: aarch64-pc-windows-msvc
code-target: win32-arm64
- - os: ubuntu-20.04
+ - os: ubuntu-18.04
target: x86_64-unknown-linux-gnu
code-target: linux-x64
- - os: ubuntu-20.04
+ - os: ubuntu-18.04
target: aarch64-unknown-linux-gnu
code-target: linux-arm64
- os: macos-11
- run: npm ci
working-directory: editors/code
- - name: Publish Extension (release)
+ - name: Package Extension (release)
if: github.ref == 'refs/heads/release'
run: npx vsce package -o "../../dist/rust-analyzer-alpine-x64.vsix" --target alpine-x64
working-directory: editors/code
- - name: Publish Extension (nightly)
+ - name: Package Extension (nightly)
if: github.ref != 'refs/heads/release'
run: npx vsce package -o "../../dist/rust-analyzer-alpine-x64.vsix" --target alpine-x64 --pre-release
working-directory: editors/code
working-directory: ./editors/code
- name: Publish Extension (release)
- if: github.ref == 'refs/heads/release'
+ if: github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
working-directory: ./editors/code
# token from https://dev.azure.com/rust-analyzer/
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
- name: Publish Extension (nightly)
- # check specifically for nightly in case someone triggers a release on a feature branch
- if: github.ref == 'refs/heads/nightly'
+ if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
working-directory: ./editors/code
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release