Repository navigation
79 lines (79 loc) · 2.83 KB
/
Copy pathcommit_checks.yml
File metadata and controls
79 lines (79 loc) · 2.83 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Edgeless Commit Checks
on:
push:
jobs:
check:
runs-on:
- ubuntu-latest
container:
image: ghcr.io/edgeless-project/ci-image:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- uses: actions/checkout@v4
- name: Linter
run: cargo fmt --check
- name: Clippy
run: cargo clippy --no-deps
- name: Tests
run: cargo test -- --test-threads=1
build:
runs-on:
- ubuntu-latest
container:
image: ghcr.io/edgeless-project/ci-image:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- uses: actions/checkout@v4
- name: Build x64 Release
run: cargo build --release
# https://github.com/esp-rs/esp-hal/blob/main/.github/workflows/ci.yml
build-esp32:
runs-on:
- ubuntu-latest
env:
SSID: SSID
PASSWORD: PASSWORD
steps:
- uses: actions/checkout@v4
- uses: esp-rs/xtensa-toolchain@v1.5
with:
ldproxy: false
version: 1.88.0.0
- name: Build ES32-S3 Release
working-directory: ./edgeless_embedded_esp32
run: ESP_HAL_CONFIG_PSRAM_MODE=octal cargo build --release --target=xtensa-esp32s3-none-elf --features=esp32s3,wasm,psram
- name: Build ES32 Release
working-directory: ./edgeless_embedded_esp32
run: cargo build --release --target=xtensa-esp32-none-elf --features=tum_node_2_13
build-nix-amd64:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: edgeless
extraPullNames: nix-community
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build .#nextless_cli .#nextless_controller .#nextless_node
build-nix-arm64:
runs-on:
- ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: edgeless
extraPullNames: nix-community
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build .#nextless_cli .#nextless_controller .#nextless_node