-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: PoAn Yang <[email protected]>
- Loading branch information
1 parent
fe00de2
commit c15f454
Showing
4 changed files
with
79 additions
and
7 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,55 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
build-amd64: | ||
name: Build AMD64 binaries | ||
# runs-on: longhorn-infra-amd64-runners | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# - name: Install make & curl | ||
# run: | | ||
# sudo apt update | ||
# sudo apt-get -y install make curl | ||
|
||
# - name: List module | ||
# run: | | ||
# lsmod | ||
|
||
# Build binaries | ||
- name: Run ci | ||
run: make ci | ||
|
||
- uses: codecov/codecov-action@v4 | ||
with: | ||
files: ./coverage.out | ||
flags: unittests | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build-arm64: | ||
name: Build ARM64 binaries | ||
runs-on: longhorn-infra-arm64-runners | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install make & curl | ||
run: | | ||
sudo apt update | ||
sudo apt-get -y install make curl | ||
# Build binaries | ||
- name: Run ci | ||
run: make ci | ||
|
||
- uses: codecov/codecov-action@v4 | ||
with: | ||
files: ./coverage.out | ||
flags: unittests | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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
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
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