-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.15 KB
/
Copy pathcopilot-setup-steps.yml
File metadata and controls
35 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31.10.0 # TODO Consider using only Nix
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
- name: Set up Rust WASM Target
run: rustup target add wasm32-unknown-unknown
- name: Cache Cargo Registry & Target
uses: swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-binstall
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- name: Install Dioxus CLI (dx)
run: cargo binstall dioxus-cli --secure --force -y
- name: Install Project Dependencies
run: cargo check