diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml new file mode 100644 index 00000000..0ebd768b --- /dev/null +++ b/.github/workflows/jekyll-gh-pages.yml @@ -0,0 +1,51 @@ +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll with GitHub Pages dependencies preinstalled + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/Makefile b/Makefile index a646b608..73110381 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ -build: - go build ./main.go +build-arm64: + GOARCH=arm64 GOOS=darwin go build -o zkproof_darwin_arm64 ./main.go + +build-amd64: + GOARCH=amd64 GOOS=darwin go build -o zkproof_darwin_amd64 ./main.go build-linux: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./main.go + GOARCH=amd64 GOOS=linux go build -o zkproof_linux_amd64 ./main.go build-windows: - CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./main.go \ No newline at end of file + GOARCH=amd64 GOOS=windows go build -o zkproof_windows_amd64.exe ./main.go \ No newline at end of file diff --git a/config/config.json b/config/config.json index f4f3d4e6..0b77929c 100644 --- a/config/config.json +++ b/config/config.json @@ -1,5 +1,5 @@ { - "MysqlDataSource" : "zkroot:zkpasswd@tcp(127.0.0.1:3306)/zkpos?parseTime=true", + "MysqlDataSource" : "root:mysqlpw@tcp(127.0.0.1:55000)/zkpos?parseTime=true", "DbSuffix": "202307", "UserDataFile": "./example_data/", "TreeDB": { diff --git a/utils/constants.go b/utils/constants.go index 31a8bac1..9aa2d056 100644 --- a/utils/constants.go +++ b/utils/constants.go @@ -6,7 +6,7 @@ import ( ) const ( - BatchCreateUserOpsCounts = 4 + BatchCreateUserOpsCounts = 864 AccountTreeDepth = 28 AssetCounts = 350 RedisLockKey = "prover_mutex_key" @@ -31,5 +31,12 @@ var ( "pepe": true, "floki": true, "nft": true, + "sats": true, + "btt": true, + "bonk": true, + "rats": true, + "axl": true, + "1cat": true, + "omi": true, } )