Skip to content

Commit

Permalink
ci: replace make with just
Browse files Browse the repository at this point in the history
  • Loading branch information
innobead committed Dec 9, 2023
1 parent b8ab8b3 commit af60b2d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 45 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- uses: extractions/setup-just@v1

- name: Setup build environment
run: make setup-dev
run: just setup-dev

- name: Run tests
run: make test
run: just test

- name: Build artifacts
run: make build
run: just build

build-macos:
name: Build - macos
Expand All @@ -29,17 +31,17 @@ jobs:
uses: actions/checkout@v3

- name: Setup build environment
run: make setup-dev
run: just setup-dev

- name: Run tests
run: |
source ~/.bashrc
make test
just test
- name: Build artifacts
run: |
source ~/.bashrc
make build
just build
build-windows:
name: Build - windows
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/buildx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Build artifacts
run: make build-multiarch
run: just build-multiarch

build-linux-armv7:
name: Build - linux armv7
Expand All @@ -47,4 +47,4 @@ jobs:
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Build artifacts
run: PLATFORMS=linux/arm/v7 make build-multiarch
run: just build-multiarch "linux/arm/v7"
8 changes: 5 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- uses: extractions/setup-just@v1

- name: Setup build environment
run: make setup-dev
run: just setup-dev

- name: Run tests
run: make test
run: just test

- name: Build artifacts
run: make build
run: just build
45 changes: 11 additions & 34 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ jobs:
id: checkout-code
uses: actions/checkout@v3

- uses: extractions/setup-just@v1

- name: Setup build environment
run: make setup-dev
run: just setup-dev

- name: Build artifacts
run: make release
run: just release

- name: Release artifacts
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -76,7 +78,7 @@ jobs:
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Setup, Test, Build
run: make release-multiarch
run: just release-multiarch

- name: Release artifacts
uses: softprops/action-gh-release@v1
Expand All @@ -85,35 +87,6 @@ jobs:
draft: true
files: "./.target/*"

# release-linux-armv7:
# name: relase - linux armv7
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
#
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v1
# with:
# version: latest
#
# - name: Available platforms
# run: echo ${{ steps.buildx.outputs.platforms }}
#
# - name: Setup, Test, Build
# run: PLATFORMS=linux/arm/v7 make release-multiarch
#
# - name: Release artifacts
# uses: softprops/action-gh-release@v1
# if: ${{startsWith(github.ref, 'refs/tags/') }}
# with:
# draft: true
# files: "./.target/*"

release-macos:
name: Release - macos
runs-on: macos-12
Expand All @@ -123,13 +96,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- uses: extractions/setup-just@v1

- name: Setup build environment
run: make setup-dev
run: just setup-dev

- name: Build artifacts
run: |
source ~/.bashrc
make release
just release
- name: Release artifacts
uses: softprops/action-gh-release@v1
Expand All @@ -147,6 +122,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- uses: extractions/setup-just@v1

- name: Setup build environment
run: ./hack/windows/setup-dev.ps1

Expand Down

0 comments on commit af60b2d

Please sign in to comment.