This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2446 from vaporos/1-3-001-github-actions
Add just-based github build action
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
branches: [ 1-3 ] | ||
push: | ||
branches: [ 1-3 ] | ||
schedule: | ||
- cron: "0 10 * * *" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
concurrency: | ||
group: "${{ github.ref }}-${{ github.workflow }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Print rustc version | ||
run: rustc --version | ||
- name: Install wasm32-unknown-unknown | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Install apt packages | ||
run: sudo apt install -y libzmq3-dev | ||
- name: Install Just | ||
run: sudo snap install --edge --classic just | ||
- name: Install protoc | ||
run: | | ||
curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip | ||
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3 | ||
rm protoc-3.5.1-linux-x86_64.zip | ||
- name: Lint | ||
run: PATH=$PATH:$(pwd)/protoc3/bin just lint | ||
- name: Build | ||
run: PATH=$PATH:$(pwd)/protoc3/bin just build | ||
- name: Test | ||
run: PATH=$PATH:$(pwd)/protoc3/bin just test |