ci: archlist from taskfile options
This commit is contained in:
parent
2b23870670
commit
8112cccc04
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -11,4 +11,4 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
- uses: cachix/install-nix-action@v27
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
- run: nix develop . -c task ci-publish GITHUB_USERNAME=${{ github.actor }} GITHUB_PASSWORD=${{ secrets.GITHUB_TOKEN }} GIT_TAG=${{ github.ref_name }}
|
- run: nix develop . -c task ci-publish GITHUB_USERNAME=${{ github.actor }} GITHUB_PASSWORD=${{ secrets.GITHUB_TOKEN }} GIT_TAG=${{ github.ref_name }} ARCH_LIST=x86_64-linux,aarch64-linux
|
||||||
|
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -12,5 +12,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v27
|
- uses: cachix/install-nix-action@v27
|
||||||
- uses: docker/setup-qemu-action@v3
|
|
||||||
- run: nix develop . -c task ci
|
- run: nix develop . -c task ci
|
||||||
|
16
Taskfile.yml
16
Taskfile.yml
@ -2,6 +2,7 @@ version: "3"
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
NIX_CMD_BASE: nix develop . -c
|
NIX_CMD_BASE: nix develop . -c
|
||||||
|
ARCH_LIST: x86_64-linux
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
ci:
|
ci:
|
||||||
@ -35,8 +36,8 @@ tasks:
|
|||||||
docker-build-all:
|
docker-build-all:
|
||||||
cmds:
|
cmds:
|
||||||
- for:
|
- for:
|
||||||
- x86_64-linux
|
var: ARCH_LIST
|
||||||
- aarch64-linux
|
split: ","
|
||||||
task: docker-build
|
task: docker-build
|
||||||
vars:
|
vars:
|
||||||
ARCH: "{{.ITEM}}"
|
ARCH: "{{.ITEM}}"
|
||||||
@ -44,15 +45,16 @@ tasks:
|
|||||||
docker-publish-all:
|
docker-publish-all:
|
||||||
cmds:
|
cmds:
|
||||||
- for:
|
- for:
|
||||||
- x86_64-linux
|
var: ARCH_LIST
|
||||||
- aarch64-linux
|
split: ","
|
||||||
task: docker-publish
|
task: docker-publish
|
||||||
vars:
|
vars:
|
||||||
ARCH: "{{.ITEM}}"
|
ARCH: "{{.ITEM}}"
|
||||||
|
|
||||||
docker-local-import:
|
docker-local-import:
|
||||||
vars:
|
requires:
|
||||||
ARCH: '{{default "x86_64-linux" .ARCH}}'
|
vars:
|
||||||
|
- ARCH
|
||||||
cmds:
|
cmds:
|
||||||
- task: docker-build
|
- task: docker-build
|
||||||
vars:
|
vars:
|
||||||
@ -113,6 +115,8 @@ tasks:
|
|||||||
test-integration:
|
test-integration:
|
||||||
cmds:
|
cmds:
|
||||||
- task: docker-local-import
|
- task: docker-local-import
|
||||||
|
vars:
|
||||||
|
ARCH: x86_64-linux
|
||||||
- |
|
- |
|
||||||
{{.NIX_CMD_BASE}} \
|
{{.NIX_CMD_BASE}} \
|
||||||
go test -v -race -count=1 ./test/integration/...
|
go test -v -race -count=1 ./test/integration/...
|
||||||
|
Loading…
Reference in New Issue
Block a user