Browse Source

fix(ci): use ubuntu-20.04 to build the CLI (#6632)

Lucas Fernandes Nogueira 2 years ago
parent
commit
5769ee6d29

+ 2 - 0
.changes/pre.json

@@ -78,6 +78,8 @@
     ".changes/tauri-mobile-entry-point.md",
     ".changes/tls-features-automatically-enabled.md",
     ".changes/tls-features-refactor.md",
+    ".changes/ubuntu-20.04-cli.js.md",
+    ".changes/ubuntu-20.04-cli.rs.md",
     ".changes/with-webview.md",
     ".changes/wry26.md"
   ]

+ 5 - 0
.changes/ubuntu-20.04-cli.js.md

@@ -0,0 +1,5 @@
+---
+"cli.js": patch
+---
+
+Use Ubuntu 20.04 to compile the CLI, increasing the minimum libc version required.

+ 6 - 0
.changes/ubuntu-20.04-cli.rs.md

@@ -0,0 +1,6 @@
+---
+"cli.rs": patch
+---
+
+- Use Ubuntu 20.04 to compile the CLI for cargo-binstall, increasing the minimum libc required.
+-

+ 5 - 5
.github/workflows/publish-cli-js.yml

@@ -40,14 +40,14 @@ jobs:
             build: yarn build:release --target i686-pc-windows-msvc
             target: i686-pc-windows-msvc
             architecture: x64
-          - host: ubuntu-18.04
+          - host: ubuntu-20.04
             target: x86_64-unknown-linux-gnu
             docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
             build: |
               cd tooling/cli/node
               yarn build:release --target x86_64-unknown-linux-gnu
               strip *.node
-          - host: ubuntu-18.04
+          - host: ubuntu-20.04
             target: x86_64-unknown-linux-musl
             docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
             build: |
@@ -59,14 +59,14 @@ jobs:
             build: |
               yarn build:release --features openssl-vendored --target=aarch64-apple-darwin
               strip -x *.node
-          - host: ubuntu-18.04
+          - host: ubuntu-20.04
             target: aarch64-unknown-linux-gnu
             docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
             build: |
               cd tooling/cli/node
               yarn build:release --target aarch64-unknown-linux-gnu
               aarch64-unknown-linux-gnu-strip *.node
-          - host: ubuntu-18.04
+          - host: ubuntu-20.04
             architecture: x64
             target: armv7-unknown-linux-gnueabihf
             setup: |
@@ -75,7 +75,7 @@ jobs:
             build: |
               yarn build:release --target=armv7-unknown-linux-gnueabihf
               arm-linux-gnueabihf-strip *.node
-          - host: ubuntu-18.04
+          - host: ubuntu-20.04
             architecture: x64
             target: aarch64-unknown-linux-musl
             docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine

+ 2 - 2
.github/workflows/publish-cli-rs.yml

@@ -18,7 +18,7 @@ jobs:
       fail-fast: false
       matrix:
         config:
-          - os: ubuntu-18.04
+          - os: ubuntu-20.04
             rust_target: x86_64-unknown-linux-gnu
             ext: ''
           - os: macos-latest
@@ -39,7 +39,7 @@ jobs:
         uses: dtolnay/rust-toolchain@stable
         with:
           targets: ${{ matrix.config.rust_target }}
-          
+
       - uses: Swatinem/rust-cache@v2
         with:
           key: ${{ matrix.config.rust_target }}

+ 1 - 0
tooling/cli/CHANGELOG.md

@@ -2,6 +2,7 @@
 
 ## \[2.0.0-alpha.6]
 
+- Use Ubuntu 20.04 to compile the CLI for cargo-binstall, increasing the minimum libc required.
 - Automatically enable the `rustls-tls` tauri feature on mobile and `native-tls` on desktop if `rustls-tls` is not enabled.
   - [cfdee00f](https://www.github.com/tauri-apps/tauri/commit/cfdee00f2b1455a9719bc44823fdaeabbe4c1cb2) refactor(core): fix tls features, use rustls on mobile ([#6591](https://www.github.com/tauri-apps/tauri/pull/6591)) on 2023-03-30
 

+ 1 - 0
tooling/cli/node/CHANGELOG.md

@@ -2,6 +2,7 @@
 
 ## \[2.0.0-alpha.6]
 
+- Use Ubuntu 20.04 to compile the CLI, increasing the minimum libc version required.
 - Automatically enable the `rustls-tls` tauri feature on mobile and `native-tls` on desktop if `rustls-tls` is not enabled.
   - [cfdee00f](https://www.github.com/tauri-apps/tauri/commit/cfdee00f2b1455a9719bc44823fdaeabbe4c1cb2) refactor(core): fix tls features, use rustls on mobile ([#6591](https://www.github.com/tauri-apps/tauri/pull/6591)) on 2023-03-30