mirror of https://github.com/chaos-mesh/chaosd.git
fix: install make (#260)
This commit is contained in:
parent
62d1ceb50f
commit
ddcd31e68e
|
@ -0,0 +1,26 @@
|
|||
name: ci
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- release-*
|
||||
paths-ignore:
|
||||
- .github/workflows/ci.yml
|
||||
- Makefile
|
||||
- go.*
|
||||
- "**.go"
|
||||
|
||||
jobs:
|
||||
pull:
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
job:
|
||||
- verify
|
||||
- build
|
||||
- unit-test
|
||||
- integration-test
|
||||
runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
|
||||
|
||||
steps:
|
||||
- run: echo "Not required to run pull jobs."
|
|
@ -21,15 +21,18 @@ jobs:
|
|||
with:
|
||||
go-version: 1.20.x
|
||||
|
||||
- name: Configure awscli
|
||||
- name: Prepare tools
|
||||
run: |
|
||||
dnf install -y python3
|
||||
pip3 install awscli
|
||||
printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure
|
||||
dnf install -y make python3
|
||||
|
||||
- name: Build binary and related tools
|
||||
run: make build
|
||||
|
||||
- name: Configure awscli
|
||||
run: |
|
||||
pip3 install awscli
|
||||
printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure
|
||||
|
||||
# TODO: release on github package / release
|
||||
- name: Upload files
|
||||
run: |
|
||||
|
|
|
@ -20,15 +20,18 @@ jobs:
|
|||
with:
|
||||
go-version: 1.20.x
|
||||
|
||||
- name: Configure awscli
|
||||
- name: Prepare tools
|
||||
run: |
|
||||
dnf install -y python3
|
||||
pip3 install awscli
|
||||
printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure
|
||||
dnf install -y make python3
|
||||
|
||||
- name: Build binary and related tools
|
||||
run: make build
|
||||
|
||||
- name: Configure awscli
|
||||
run: |
|
||||
pip3 install awscli
|
||||
printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure
|
||||
|
||||
- name: Upload files
|
||||
run: |
|
||||
GIT_TAG=${GITHUB_REF##*/}
|
||||
|
|
Loading…
Reference in New Issue