cleanup build.yml action

I think we don't need to run the full rust toolchain script,
just `rustup update`?

Also update actions version for checkout and comments.
This commit is contained in:
bunnie 2024-01-11 21:19:41 +08:00
parent 958517a474
commit d510a806de

View file

@ -18,15 +18,11 @@ jobs:
sudo apt update sudo apt update
sudo apt install -y libxkbcommon-dev sudo apt install -y libxkbcommon-dev
- name: Install stable toolchain - name: Update to latest toolchain
uses: actions-rs/toolchain@v1 run: rustup update
with:
profile: minimal
toolchain: "1.75.0"
default: true
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Fetch tags - name: Fetch tags
run: git fetch --prune --unshallow --tags run: git fetch --prune --unshallow --tags
@ -38,5 +34,5 @@ jobs:
- name: Clean out old target directory (in case of libstd change) - name: Clean out old target directory (in case of libstd change)
run: rm -rf target/* run: rm -rf target/*
- name: Build hosted-ci - name: Build CI targets
run: cargo xtask ${{ matrix.task }} --no-verify run: cargo xtask ${{ matrix.task }} --no-verify