Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 8, 2022
1 parent 0cd3dfb commit 0d5a2a6
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
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']
51 changes: 51 additions & 0 deletions .github/workflows/cross_compile.yaml
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/*

0 comments on commit 0d5a2a6

Please sign in to comment.