ci: switch to ubuntu-latest
ubuntu-18.04 is being deprecated and will soon be unavailable
@@ -86,19 +86,27 @@ jobs:
retention-days: 1
linux:
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-latest
+ container: ubuntu:18.04
needs: tagname
env:
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}
+ DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
- sudo apt-get update
- sudo apt-get install cmake pkg-config libfontconfig-dev libgtk-3-dev
- - name: Update rust
- run: rustup update
+ apt-get -y update
+ apt-get -y install cmake pkg-config libfontconfig-dev libgtk-3-dev
+
+ - name: Install Rust toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ target: x86_64-unknown-linux-gnu
+ profile: minimal
+
- name: Build
run: cargo build --profile release-lto --bin lapce
- name: Gzip
@@ -241,7 +249,7 @@ jobs:
publish:
needs: [linux, linux-musl, windows, macos]
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
