-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 980 Bytes
/
CI.yml
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
WORKING_DIR: multiplication2
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Check
run: make check
working-directory: ${{ env.WORKING_DIR }}
- name: Format
run: make format
working-directory: ${{ env.WORKING_DIR }}
- name: Test
run: make test
working-directory: ${{ env.WORKING_DIR }}
- name: Release
run: make release
working-directory: ${{ env.WORKING_DIR }}
- name: Upload Binary Artifact
uses: actions/upload-artifact@v4 #v3 is scheduled for deprecation Nov 30 2024 check marketplace
with:
name: release-binary
path: ${{ env.WORKING_DIR }}/target/release/multiplication2