Skip to content

Commit

Permalink
ci: bundle most ci together
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0Vu committed Dec 6, 2023
1 parent e2f6da2 commit c81c540
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 131 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/katzenmint.yml → .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Katzenmint
name: All

on: ["push", "pull_request"]

Expand All @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "macOS-latest"]
go: ["1.17.x", "1.18.x", "1.19.x", "1.20.x"]
go: ["1.19.x", "1.20.x", "1.21.x"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
Expand All @@ -19,28 +19,29 @@ jobs:

- uses: actions/checkout@v3

- name: "Test katzenmint"
- name: "Test all"
run: |
cd katzenmint
make
make test-all
- name: "Build katzenmint"
- name: "Build all"
run: |
cd katzenmint
make build
make build-all
mkdir dist
mv katzenmint dist
mv katzenmint/katzenmint dist
mv server/meson-server dist
mv plugin/meson-plugin dist
mv genconfig/genconfig dist
- if: runner.os == 'macOS'
name: "Setup katzenmint filename"
run: echo "ZIPNAME=katzenmint_darwin_${{ matrix.go }}" >> $GITHUB_ENV
name: "Setup filename"
run: echo "ZIPNAME=meson_darwin_${{ matrix.go }}" >> $GITHUB_ENV

- if: runner.os == 'Linux'
name: "Setup katzenmint filename"
run: echo "ZIPNAME=katzenmint_linux_${{ matrix.go }}" >> $GITHUB_ENV
name: "Setup filename"
run: echo "ZIPNAME=meson_linux_${{ matrix.go }}" >> $GITHUB_ENV

- name: Archive katzenmint
- name: Archive all
uses: actions/upload-artifact@v3
with:
name: ${{ env.ZIPNAME }}
path: katzenmint/dist
path: dist
24 changes: 0 additions & 24 deletions .github/workflows/client.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/plugin.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/server.yml

This file was deleted.

0 comments on commit c81c540

Please sign in to comment.