Skip to content

Commit

Permalink
update arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashuaidehao committed Jun 27, 2024
1 parent 4cf59a9 commit ab25cf4
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_mac.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release Mac

on:
workflow_dispatch:
Expand Down
112 changes: 112 additions & 0 deletions .github/workflows/release_mac_arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Release Mac Arm

on:
workflow_dispatch:

env:
DOTNET_VERSION: 8.0.x
NODE_VERSION: 20.x

jobs:


build:
name: Release/
# if: startsWith(github.ref, 'refs/heads/release/')
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{env.DOTNET_VERSION}}

- name: Install dependencies
run: dotnet restore neo3-gui/neo3-gui/neo3-gui.csproj

- name: Use Node.js ${{env.NODE_VERSION}}
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}

- name: build mac
working-directory: neo3-gui/neo3-gui
env:
CI: false
run: dotnet publish -r osx-arm64 --sc -c Release -o ClientApp/build-neo-node

- name: build mac electron
working-directory: neo3-gui/neo3-gui/ClientApp
env:
CI: false
run: |
npm install
npx electron-builder --mac --arm64 --publish always
- name: Upload Mac Release Files
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: release-mac
path: neo3-gui/neo3-gui/ClientApp/build-electron/*.dmg



# - name: Get Cache Files (osx-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: osx-x64

# - name: Get Cache Files (osx-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: osx-arm64

# - name: Get Cache Files (linux-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-x64

# - name: Get Cache Files (linux-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-arm64

# - name: Get Cache Files (linux-musl-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-musl-arm64

# - name: Get Cache Files (win-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: win-x64

# - name: Get Cache Files (win-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: win-arm64

# - name: Create Release
# uses: marvinpinto/action-automatic-releases@latest
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: ${{ steps.nbgv.outputs.PrereleaseVersion != '' }}
# title: ${{ steps.nbgv.outputs.NuGetPackageVersion }}
# automatic_release_tag: ${{ steps.nbgv.outputs.NuGetPackageVersion }}
# files: |
# /tmp/dist/*
2 changes: 1 addition & 1 deletion neo3-gui/neo3-gui/neo3-gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.1" />
<PackageReference Include="Neo" Version="3.7.5" />
<PackageReference Include="Neo.LevelDb.Dev" Version="3.0.0-pre4" />
<PackageReference Include="Neo.LevelDb.Dev" Version="3.0.0-pre5" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit ab25cf4

Please sign in to comment.