Fix not migrated #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile release | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
build_win: | |
name: Build executable (Windows) | |
strategy: | |
matrix: | |
arch: | |
- x64 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: release | |
- name: Install Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: stable | |
architecture: ${{ matrix.arch }} | |
- name: Get dependencies | |
run: dart pub get | |
- name: Create distribution folder | |
run: mkdir dist | |
- name: Compile | |
run: dart compile exe bin/oghref_cmd.dart -o dist/oghref_cmd.exe | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Windows (${{ matrix.arch }}) | |
path: dist/oghref_cmd.exe | |
if-no-files-found: error | |
build_macos_intel: | |
name: Build executable (macOS, Intel) | |
strategy: | |
matrix: | |
arch: | |
- x64 | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: release | |
- name: Install Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: stable | |
architecture: ${{ matrix.arch }} | |
- name: Get dependencies | |
run: dart pub get | |
- name: Create distribution folder | |
run: mkdir dist | |
- name: Compile | |
run: dart compile exe bin/oghref_cmd.dart -o dist/oghref_cmd | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macOS (${{ matrix.arch }}) | |
path: dist/oghref_cmd | |
if-no-files-found: error | |
build_macos_arm: | |
name: Build executable (macOS, Apple Silicon) | |
strategy: | |
matrix: | |
arch: | |
- arm64 | |
runs-on: macos-14 # macos-latest (Uncomment when migrated at 2024 Q2) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: release | |
- name: Install Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: stable | |
architecture: ${{ matrix.arch }} | |
- name: Get dependencies | |
run: dart pub get | |
- name: Create distribution folder | |
run: mkdir dist | |
- name: Compile | |
run: dart compile exe bin/oghref_cmd.dart -o dist/oghref_cmd | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macOS (${{ matrix.arch }}) | |
path: dist/oghref_cmd | |
if-no-files-found: error | |
build_linux: | |
name: Build executable (Linux) | |
strategy: | |
matrix: | |
arch: | |
- x64 | |
#- arm64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: release | |
- name: Install Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: stable | |
architecture: ${{ matrix.arch }} | |
- name: Get dependencies | |
run: dart pub get | |
- name: Create distribution folder | |
run: mkdir dist | |
- name: Compile | |
run: dart compile exe bin/oghref_cmd.dart -o dist/oghref_cmd | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Linux (${{ matrix.arch }}) | |
path: dist/oghref_cmd | |
if-no-files-found: error |