]> git.lizzy.rs Git - rust.git/blobdiff - .github/workflows/release.yaml
Use older ubuntu for releases
[rust.git] / .github / workflows / release.yaml
index fb9e207b1d29068ec627f7f314e4c24fe883c68b..29ac895493acde85e249d5828b4456e4ed5a3dc6 100644 (file)
@@ -8,19 +8,19 @@ on:
     - release
     - nightly
 
+env:
+  CARGO_INCREMENTAL: 0
+  CARGO_NET_RETRY: 10
+  RUSTFLAGS: -D warnings
+  RUSTUP_MAX_RETRIES: 10
+
 jobs:
   dist:
     name: dist
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        os: [ubuntu-latest, windows-latest, macos-latest]
-
-    env:
-      RUSTFLAGS: -D warnings
-      CARGO_INCREMENTAL: 0
-      RUSTUP_MAX_RETRIES: 10
-      CARGO_NET_RETRY: 10
+        os: [ubuntu-16.04, windows-latest, macos-latest]
 
     steps:
     - name: Checkout repository
@@ -39,26 +39,29 @@ jobs:
       with:
         toolchain: stable
         profile: minimal
-        target: x86_64-unknown-linux-musl
         override: true
 
     - name: Install Nodejs
-      if: matrix.os == 'ubuntu-latest'
+      if: matrix.os == 'ubuntu-16.04'
       uses: actions/setup-node@v1
       with:
         node-version: 12.x
 
     - name: Dist
-      if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/release'
-      run: cargo xtask dist --client --version 0.2.$GITHUB_RUN_NUMBER         --tag $(date --iso --utc)
+      if: matrix.os == 'ubuntu-16.04' && github.ref == 'refs/heads/release'
+      run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER
 
     - name: Dist
-      if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/release'
-      run: cargo xtask dist --client --version 0.3.$GITHUB_RUN_NUMBER-nightly --tag nightly
+      if: matrix.os == 'ubuntu-16.04' && github.ref != 'refs/heads/release'
+      run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly
 
     - name: Dist
-      if: matrix.os != 'ubuntu-latest'
-      run: cargo xtask dist --version 0.3.$GITHUB_RUN_NUMBER-nightly --tag nightly
+      if: matrix.os != 'ubuntu-16.04'
+      run: cargo xtask dist
+
+    - name: Nightly analysis-stats check
+      if: matrix.os == 'ubuntu-16.04' && github.ref != 'refs/heads/release'
+      run: ./dist/rust-analyzer-linux analysis-stats .
 
     - name: Upload artifacts
       uses: actions/upload-artifact@v1
@@ -68,7 +71,7 @@ jobs:
 
   publish:
     name: publish
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-16.04
     needs: ['dist']
     steps:
     - name: Install Nodejs
@@ -91,7 +94,7 @@ jobs:
         path: dist
     - uses: actions/download-artifact@v1
       with:
-        name: dist-ubuntu-latest
+        name: dist-ubuntu-16.04
         path: dist
     - uses: actions/download-artifact@v1
       with: