Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRetro2033 committed Aug 16, 2024
1 parent 9264866 commit f9665fb
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build

on:
push:
branches:
- main
- "feature/*"
pull_request:
branches:
- main

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Dart SDK
uses: dart-lang/[email protected]

- name: Build Windows Version
run: dart compile exe bin/main.dart --target-os windows -o ./build/windows/arceus.exe
27 changes: 27 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dart Format Check

on:
push:
branches:
- main
- "feature/*"
pull_request:
branches:
- main

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Dart SDK
uses: dart-lang/[email protected]

- name: Run format check
run: dart format --set-exit-if-changed .

- name: Analyze
run: dart analyze
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/
.arceus/
.arceus/
build/

0 comments on commit f9665fb

Please sign in to comment.