fork/rust_serialization_benchmark

git clone https://git.julia.blue/fork/rust_serialization_benchmark

David KoloskiAdd missing rustfmt component to CI toolchain23ed1ad

master
1.2 KiB54 linesraw
1name: build
2
3on:
4  pull_request:
5    branches: [ master ]
6
7env:
8  CI: true
9
10jobs:
11  build:
12    name: build
13    strategy:
14      matrix:
15        platform: [ubuntu-latest]
16
17    runs-on: ${{ matrix.platform }}
18    steps:
19      - uses: actions/checkout@v3
20        with:
21          fetch-depth: 1
22          submodules: true
23
24      - uses: actions-rs/toolchain@v1
25        with:
26          toolchain: nightly
27          override: true
28          components: rust-src, rustfmt
29
30      - uses: Swatinem/rust-cache@v2
31
32      - name: check formatting
33        shell: bash
34        run: |
35
36          cargo fmt --check
37
38      - name: build
39        shell: bash
40        run: |
41
42          wget "https://github.com/protocolbuffers/protobuf/releases/download/v23.3/protoc-23.3-linux-x86_64.zip" -O protoc.zip
43          unzip protoc.zip
44          chmod +x bin/protoc
45          mv bin/protoc /usr/local/bin
46
47          wget "https://github.com/google/flatbuffers/releases/download/v23.5.26/Linux.flatc.binary.clang++-12.zip" -O flatbuffers
48          unzip flatbuffers
49          chmod +x flatc
50          mv flatc /usr/local/bin
51
52          sudo apt-get install -y capnproto libprotobuf-dev
53
54          cargo build --benches