Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 3004c63

Browse files
authored
Merge pull request #2446 from vaporos/1-3-001-github-actions
Add just-based github build action
2 parents 7820e6c + 97a4cc1 commit 3004c63

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches: [ 1-3 ]
6+
push:
7+
branches: [ 1-3 ]
8+
schedule:
9+
- cron: "0 10 * * *"
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
concurrency:
15+
group: "${{ github.ref }}-${{ github.workflow }}"
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Print rustc version
24+
run: rustc --version
25+
- name: Install wasm32-unknown-unknown
26+
run: rustup target add wasm32-unknown-unknown
27+
- name: Install apt packages
28+
run: sudo apt install -y libzmq3-dev
29+
- name: Install Just
30+
run: sudo snap install --edge --classic just
31+
- name: Install protoc
32+
run: |
33+
curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
34+
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3
35+
rm protoc-3.5.1-linux-x86_64.zip
36+
- name: Lint
37+
run: PATH=$PATH:$(pwd)/protoc3/bin just lint
38+
- name: Build
39+
run: PATH=$PATH:$(pwd)/protoc3/bin just build
40+
- name: Test
41+
run: PATH=$PATH:$(pwd)/protoc3/bin just test

0 commit comments

Comments
 (0)