Add fromToolchainName
to targets
#151
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr | |
on: pull_request | |
jobs: | |
check: | |
name: check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@V28 | |
with: | |
extra_nix_config: access-tokens = github.com=${{ github.token }} | |
- name: Check formatting | |
run: nix run nixpkgs#nixpkgs-fmt --inputs-from . -- {,lib/}*.nix --check | |
- name: Set up cachix | |
uses: cachix/cachix-action@v15 | |
with: | |
name: nix-community | |
- name: Build with nix | |
run: | | |
nix build .#{{stable,beta,complete}.toolchain,rust-analyzer{,-vscode-extension}} | |
./test |