Projects STRLCPY bearer Commits e2be8078
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    .github/workflows/release.yml
    skipped 71 lines
    72 72   uses: actions/setup-go@v3
    73 73   with:
    74 74   go-version: 1.18
     75 + - name: Setup Gon
     76 + run: brew install mitchellh/gon/gon
     77 + - name: Import Code-Signing Certificates
     78 + uses: Apple-Actions/import-codesign-certs@v1
     79 + with:
     80 + # The certificates in a PKCS12 file encoded as a base64 string
     81 + p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
     82 + # The password used to import the PKCS12 file.
     83 + p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
    75 84   - name: Run GoReleaser
    76 85   uses: goreleaser/goreleaser-action@v3
    77 86   with:
    skipped 2 lines
    80 89   args: release --skip-publish -f ./goreleaser/darwin.yaml
    81 90   env:
    82 91   GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     92 + AC_USERNAME: ${{ secrets.AC_USERNAME }}
     93 + AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
    83 94   - name: Upload
    84 95   uses: actions/upload-artifact@v3
    85 96   with:
    86 97   name: curio-darwin
    87  - path: dist/curio*
     98 + path: |
     99 + dist/curio*.tar.gz
     100 + dist/curio*checksums.txt
    88 101   
    89 102   publish:
    90  - needs: [tag, build-darwin, build-linux]
     103 + needs: [tag, build-linux, build-darwin]
    91 104   runs-on: ubuntu-latest
    92 105   steps:
    93 106   - uses: actions/checkout@v3
    skipped 18 lines
    112 125   - name: Merge checksum file
    113 126   run: |
    114 127   cd ./curio-build
    115  - cat ./darwin/curio*checksums.txt >> checksums.txt
    116 128   cat ./linux/curio*checksums.txt >> checksums.txt
     129 + cat ./darwin/curio*checksums.txt >> checksums.txt
    117 130   rm ./darwin/curio*checksums.txt
    118 131   rm ./linux/curio*checksums.txt
    119 132   - name: Release
    skipped 6 lines
  • ■ ■ ■ ■ ■ ■
    goreleaser/darwin.yaml
     1 +project_name: curio
     2 + 
    1 3  before:
    2 4   hooks:
    3 5   - go mod tidy
    4 6   - go generate ./...
     7 + 
    5 8  builds:
    6  - - id: "darwin"
     9 + - id: curio-macos-build
    7 10   main: ./cmd/curio
    8 11   binary: curio
    9 12   env:
    skipped 1 lines
    11 14   goos:
    12 15   - darwin
    13 16   goarch:
    14  - - arm64
    15 17   - amd64
     18 + - arm64
    16 19   ldflags:
    17 20   - -s -w
    18 21   - -X "github.com/bearer/curio/cmd/curio/build.Version={{.Version}}"
    19 22   - -X "github.com/bearer/curio/cmd/curio/build.CommitSHA={{.Commit}}"
     23 + hooks:
     24 + post:
     25 + - |
     26 + sh -c '
     27 + fn=dist/curio-macos-build_{{.Target}}/gon.hcl
     28 + cat >"$fn" <<EOF
     29 + source = ["dist/curio-macos-build_{{.Target}}/{{.Name}}"]
     30 + 
     31 + bundle_id = "com.bearer.curio"
     32 + 
     33 + apple_id {
     34 + password = "@env:AC_PASSWORD"
     35 + }
     36 + 
     37 + sign {
     38 + application_identity = "Developer ID Application: Bearer Inc (5T2VP4YAG8)"
     39 + }
     40 + 
     41 + zip {
     42 + output_path = "curio_{{.Target}}.zip"
     43 + }
     44 + EOF
     45 + '
     46 + - "gon -log-level=debug 'dist/curio-macos-build_{{.Target}}/gon.hcl'"
     47 + 
    20 48  snapshot:
    21 49   name_template: "{{ incpatch .Version }}-next"
     50 + 
     51 +archives:
     52 + - id: macos-archive
     53 + builds:
     54 + - curio-macos-build
     55 + 
    22 56  changelog:
    23 57   sort: asc
    24 58   filters:
    skipped 4 lines
Please wait...
Page is in error, reload to recover