diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index f7fdb97..74a93fd 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -8,7 +8,7 @@ on: jobs: build-linux: - runs-on: ubuntu-latest + runs-on: docker steps: - name: Checkout uses: actions/checkout@v4 @@ -53,7 +53,7 @@ jobs: path: csvtool-linux-amd64.tar.gz build-linux-webkit2_41: - runs-on: ubuntu-latest + runs-on: docker steps: - name: Checkout uses: actions/checkout@v4 @@ -96,3 +96,39 @@ jobs: with: name: csvtool-linux-amd64-webkit2_41 path: csvtool-linux-amd64-webkit2_41.tar.gz + + build-macos: + runs-on: macos + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Wails CLI + run: go install github.com/wailsapp/wails/v2/cmd/wails@latest + + - name: Run tests + run: go test ./... + + - name: Build + run: wails build -platform darwin/arm64 + + - name: Package artifact + run: | + cd build/bin + tar czf ../../csvtool-darwin-arm64.tar.gz csvtool + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: csvtool-darwin-arm64 + path: csvtool-darwin-arm64.tar.gz