Skip to content

Commit

Permalink
Update github action actions, split macOS targets
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed Jun 24, 2024
1 parent b37d90b commit ae41787
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
workflow_dispatch:

jobs:
compile_linux:
build_linux_x86:
runs-on: ubuntu-latest
steps:
# Checks-out repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Install dependencies
- name: Install Dart SDK
run: |
Expand All @@ -24,40 +24,57 @@ jobs:
dart compile exe "./bin/main.dart" -o "./nexustools"
# Upload binary
- name: Upload Dart executable
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: nexustools-linux-x64
name: nexustools-linux-x86
path: nexustools
compile_windows:
build_windows_x86:
runs-on: windows-latest
steps:
- name: Install Dart SDK
run: |
choco install dart-sdk
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Compile Dart executable
run: |
C:\tools\dart-sdk\bin\dart pub get
C:\tools\dart-sdk\bin\dart compile exe "bin\main.dart" -o "nexustools.exe"
- name: Upload Dart executable
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: nexustools-windows-x64
name: nexustools-windows-x86
path: nexustools.exe
compile_macos:
build_macos_x86:
runs-on: macos-latest-large
steps:
- name: Install Dart SDK
run: |
brew tap dart-lang/dart
brew install dart
- uses: actions/checkout@v4
- name: Compile Dart executable
run: |
dart pub get
dart compile exe "./bin/main.dart" -o "./nexustools"
- name: Upload Dart executable
uses: actions/upload-artifact@v4
with:
name: nexustools-macos-x86
path: nexustools
build_macos_arm:
runs-on: macos-latest
steps:
- name: Install Dart SDK
run: |
brew tap dart-lang/dart
brew install dart
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Compile Dart executable
run: |
dart pub get
dart compile exe "./bin/main.dart" -o "./nexustools"
- name: Upload Dart executable
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: nexustools-macos-x64
path: nexustools
name: nexustools-macos-arm64
path: nexustools

0 comments on commit ae41787

Please sign in to comment.