Skip to content

Commit

Permalink
feat: add arm64 for image and binary
Browse files Browse the repository at this point in the history
  • Loading branch information
XGHeaven committed Oct 13, 2024
1 parent 5775398 commit 9dc8cea
Show file tree
Hide file tree
Showing 5 changed files with 695 additions and 601 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,25 @@ jobs:

build-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- uses: actions/checkout@v2
- name: Buildx
uses: docker/setup-buildx-action@v3
- name: Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
push: true
tags: xgheaven/homebox:latest
context: .
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.vscode
.DS_Store

/build
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ build-all-arch: build-darwin build-window build-linux

build-darwin:
make build-arch OS=darwin ARCH=amd64
make build-arch OS=darwin ARCH=arm64

build-window:
make build-arch OS=windows ARCH=amd64 EXT=.exe
Expand Down
5 changes: 3 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
"lint:fix": "eslint src --fix"
},
"author": "XGHeaven <xgheaven@gmail.com>",
"license": "ISC",
"packageManager": "pnpm@8.9.2",
"license": "MIT",
"devDependencies": {
"@rspack/cli": "^0.3.7",
"@types/node": "^20.8.7",
"@types/react": "^18.2.29",
"@types/react-dom": "^18.2.13",
"@xgheaven/eslint-config-xgheaven": "^0.3.0",
"@xgheaven/eslint-config-xgheaven": "^0.4.0",
"eslint": "^7.1.0",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
Expand Down
Loading

0 comments on commit 9dc8cea

Please sign in to comment.