-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Nov 8, 2022
1 parent
0cd3dfb
commit 0d5a2a6
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [azkadev] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Compile Cross platform | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
name: Compile Program dart cross platform @azkadev | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
include: | ||
- os: ubuntu-latest | ||
output-name: linux | ||
- os: macOS-latest | ||
output-name: macos | ||
- os: windows-latest | ||
output-name: windows | ||
|
||
steps: | ||
- name: Export Release Timestamp | ||
run: echo "APP_VERSION=v$(date +'%Y.%m.%d.%H.%M.%S')" >> $GITHUB_ENV | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
- name: Set up Dart | ||
uses: cedx/setup-dart@v3 | ||
with: | ||
architecture: x64 | ||
release-channel: stable | ||
version: latest | ||
- name: check dart version | ||
run: dart --version | ||
- name: Install pub Dependencies | ||
run: dart pub get | ||
- name: Mkdir build | ||
run: mkdir build | ||
- name: Compile dart to exe | ||
run: dart compile exe ./bin/${{ github.event.repository.name }}.dart -o build/${{ github.event.repository.name }}_${{ matrix.output-name }}_${{ runner.arch }} | ||
- name: Publish artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifact | ||
path: build/* | ||
- name: Publish Release | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
repo_token: "${{ github.token }}" | ||
automatic_release_tag: "latest-${{ matrix.output-name }}" | ||
prerelease: false | ||
title: "Release ${{ matrix.output-name }}" | ||
files: | | ||
build/* |