Skip to content

Commit

Permalink
Add windows/arm64 artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Aug 21, 2021
1 parent 6ac4aa2 commit 17e6dfc
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 52 deletions.
43 changes: 26 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ env:
GHCR_SLUG: ghcr.io/crazy-max/ftpgrab

jobs:
validate:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Validate
uses: docker/bake-action@v1
with:
targets: validate
pull: true

test:
runs-on: ubuntu-latest
steps:
Expand All @@ -36,16 +52,12 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
version: v0.6.0
-
name: Test
uses: docker/bake-action@v1
with:
targets: test
set: |
*.cache-from=type=gha,scope=ftpgrab-test
*.cache-to=type=gha,scope=ftpgrab-test,mode=max
pull: true
-
name: Upload coverage
uses: codecov/codecov-action@v2
Expand All @@ -54,7 +66,9 @@ jobs:

build:
runs-on: ubuntu-latest
needs: [ test ]
needs:
- validate
- test
steps:
-
name: Checkout
Expand All @@ -71,6 +85,8 @@ jobs:
${{ env.GHCR_SLUG }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=pr
type=edge
labels: |
Expand All @@ -83,8 +99,6 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
version: v0.6.0
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
Expand All @@ -105,9 +119,7 @@ jobs:
uses: docker/bake-action@v1
with:
targets: artifact-all
set: |
*.cache-from=type=gha,scope=ftpgrab-artifact
*.cache-to=type=gha,scope=ftpgrab-artifact,mode=max
pull: true
-
name: Move artifacts
run: |
Expand All @@ -116,22 +128,19 @@ jobs:
name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ftpgrab
name: diun
path: ./dist/*
if-no-files-found: error
-
name: Build image
name: Build
uses: docker/bake-action@v1
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
targets: image-all
pull: true
push: ${{ github.event_name != 'pull_request' }}
set: |
*.cache-from=type=gha,scope=ftpgrab-artifact
*.cache-from=type=gha,scope=ftpgrab-image
*.cache-to=type=gha,scope=ftpgrab-image,mode=max
-
name: GitHub Release
uses: softprops/action-gh-release@v1
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
uses: docker/bake-action@v1
with:
targets: docs
set: |
*.cache-from=type=gha,scope=ftpgrab-docs
*.cache-to=type=gha,scope=ftpgrab-docs,mode=max
-
name: Check GitHub Pages status
uses: crazy-max/ghaction-github-status@v2
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/validate.yml

This file was deleted.

1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ target "artifact-all" {
"linux/riscv64",
"linux/s390x",
"windows/386",
"windows/amd64",
"windows/amd64"
]
}
Expand Down
1 change: 1 addition & 0 deletions docs/install/binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Choose the archive matching the destination platform:
* [`ftpgrab_{{ git.tag | trim('v') }}_linux_s390x.tar.gz`]({{ config.repo_url }}/releases/download/v{{ git.tag | trim('v') }}/ftpgrab_{{ git.tag | trim('v') }}_linux_s390x.tar.gz)
* [`ftpgrab_{{ git.tag | trim('v') }}_windows_386.zip`]({{ config.repo_url }}/releases/download/v{{ git.tag | trim('v') }}/ftpgrab_{{ git.tag | trim('v') }}_windows_386.zip)
* [`ftpgrab_{{ git.tag | trim('v') }}_windows_amd64.zip`]({{ config.repo_url }}/releases/download/v{{ git.tag | trim('v') }}/ftpgrab_{{ git.tag | trim('v') }}_windows_amd64.zip)
* [`ftpgrab_{{ git.tag | trim('v') }}_windows_arm64.zip`]({{ config.repo_url }}/releases/download/v{{ git.tag | trim('v') }}/ftpgrab_{{ git.tag | trim('v') }}_windows_arm64.zip)

And extract FTPGrab:

Expand Down

0 comments on commit 17e6dfc

Please sign in to comment.