Skip to content

Commit

Permalink
CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snider committed Mar 27, 2024
1 parent 3cb0b4a commit c2f35d9
Showing 1 changed file with 85 additions and 85 deletions.
170 changes: 85 additions & 85 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,94 +169,94 @@ jobs:
files: lethean.app.zip


macos-m1:
runs-on: macos-latest
steps:
# Checkout code
- uses: actions/checkout@v4
with:
submodules: recursive
# Install GoLang
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ^1.21
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: denoland/setup-deno@v1
with:
deno-version: v1.41.2
# Set up GoLang cache
- name: Go Cache
uses: actions/cache@v4
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: |
go install github.com/wailsapp/wails/v2/cmd/wails@latest
brew install mitchellh/gon/gon
- name: Build
run: |
make server-macos-m1
wails build --platform darwin/arm64 -webview2 embed
- name: chmod +x exe
run: chmod +x build/bin/lethean.app/Contents/MacOS/lethean
- name: Zip .app
working-directory: ./build/bin
run: |
ditto -c -k --keepParent ./lethean.app ../../lethean-m1.app.zip
# - name: Import Code-Signing Certificates for macOS
# if: startsWith(github.ref, 'refs/tags/')
# uses: Apple-Actions/import-codesign-certs@v1
# macos-m1:
# runs-on: macos-latest
# steps:
# # Checkout code
# - uses: actions/checkout@v4
# with:
# keychain-password: ${{ secrets.APPLE_PASSWORD }}
# p12-file-base64: ${{ secrets.MAC_DEVELOPER_CERT }}
# p12-password: ${{ secrets.MAC_DEVELOPER_PASS }}
# - name: Import Code-Signing Certificates for macOS
# if: startsWith(github.ref, 'refs/tags/')
# uses: Apple-Actions/import-codesign-certs@v1
# submodules: recursive
# # Install GoLang
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# keychain-password: ${{ secrets.APPLE_PASSWORD }}
# p12-file-base64: ${{ secrets.MAC_DEVELOPER_INSTALL_CERT }}
# p12-password: ${{ secrets.MAC_DEVELOPER_INSTALL_PASS }}
# create-keychain: false
# - name: Sign our macOS binary
# if: startsWith(github.ref, 'refs/tags/')
# env:
# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
# go-version: ^1.21
# - uses: actions/setup-node@v4
# with:
# node-version: 18.x
# - uses: denoland/setup-deno@v1
# with:
# deno-version: v1.41.2
# # Set up GoLang cache
# - name: Go Cache
# uses: actions/cache@v4
# with:
# path: |
# ~/Library/Caches/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
# - run: |
# go install github.com/wailsapp/wails/v2/cmd/wails@latest
# brew install mitchellh/gon/gon
# - name: Build
# run: |
# echo "Signing Package"
# gon -log-level=info ./build/darwin/gon-sign.json
# echo "Building Zip file"
# ditto -c -k --keepParent ./build/bin/lethean.app ./build/bin/lethean.app.zip
# echo "Building Installer"
# productbuild --sign 'Developer ID Installer: Lethean LTD (W2DNA5L5DY)' --component ./build/bin/lethean.app ./build/bin/lethean.pkg
# echo "notarising Installer and zip"
# gon -log-level=info ./build/darwin/gon-notarize.json
# uploads the job file, makes no release
- uses: actions/upload-artifact@v4
with:
name: macOS Universal Desktop
path: lethean-m1.app.zip
# if this is a tag build, upload
- name: Release Tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: lethean-m1.app.zip
- name: Release Branch
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/heads/main')
with:
tag_name: canary
prerelease: true
files: lethean-m1.app.zip
# make server-macos-m1
# wails build --platform darwin/arm64 -webview2 embed
# - name: chmod +x exe
# run: chmod +x build/bin/lethean.app/Contents/MacOS/lethean
# - name: Zip .app
# working-directory: ./build/bin
# run: |
# ditto -c -k --keepParent ./lethean.app ../../lethean-m1.app.zip
#
# # - name: Import Code-Signing Certificates for macOS
## if: startsWith(github.ref, 'refs/tags/')
## uses: Apple-Actions/import-codesign-certs@v1
## with:
## keychain-password: ${{ secrets.APPLE_PASSWORD }}
## p12-file-base64: ${{ secrets.MAC_DEVELOPER_CERT }}
## p12-password: ${{ secrets.MAC_DEVELOPER_PASS }}
## - name: Import Code-Signing Certificates for macOS
## if: startsWith(github.ref, 'refs/tags/')
## uses: Apple-Actions/import-codesign-certs@v1
## with:
## keychain-password: ${{ secrets.APPLE_PASSWORD }}
## p12-file-base64: ${{ secrets.MAC_DEVELOPER_INSTALL_CERT }}
## p12-password: ${{ secrets.MAC_DEVELOPER_INSTALL_PASS }}
## create-keychain: false
## - name: Sign our macOS binary
## if: startsWith(github.ref, 'refs/tags/')
## env:
## APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
## run: |
## echo "Signing Package"
## gon -log-level=info ./build/darwin/gon-sign.json
## echo "Building Zip file"
## ditto -c -k --keepParent ./build/bin/lethean.app ./build/bin/lethean.app.zip
## echo "Building Installer"
## productbuild --sign 'Developer ID Installer: Lethean LTD (W2DNA5L5DY)' --component ./build/bin/lethean.app ./build/bin/lethean.pkg
## echo "notarising Installer and zip"
## gon -log-level=info ./build/darwin/gon-notarize.json
# # uploads the job file, makes no release
# - uses: actions/upload-artifact@v4
# with:
# name: macOS Universal Desktop
# path: lethean-m1.app.zip
# # if this is a tag build, upload
# - name: Release Tag
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: lethean-m1.app.zip
# - name: Release Branch
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/heads/main')
# with:
# tag_name: canary
# prerelease: true
# files: lethean-m1.app.zip

windows:
runs-on: windows-2022
Expand Down

0 comments on commit c2f35d9

Please sign in to comment.