Skip to content

Commit

Permalink
Update to Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRetro2033 committed Aug 16, 2024
1 parent e3db821 commit 1f48197
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,10 @@
name: build

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

jobs:
format:
runs-on: ${{ matrix.os }}

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

- name: Setup Dart SDK
uses: dart-lang/[email protected]
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux
output: "build/releases/example-v0.0.1-alpha.1-linux-amd64.tar.gz"
- os: windows-latest
platform: windows
output: "build/releases/example-v0.0.1-alpha.1-windows-amd64.tar.gz"
- os: macos-latest
platform: macos
output: "build/releases/example-v0.0.1-alpha.1-macos-arm64.tar.gz"
call-test:
uses: ./.github/workflows/compile.yml
34 changes: 34 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: compile

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

jobs:
format:
runs-on: ${{ matrix.os }}

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

- name: Setup Dart SDK
uses: dart-lang/[email protected]
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux
output: "build/releases/example-v0.0.1-alpha.1-linux-amd64.tar.gz"
- os: windows-latest
platform: windows
output: "build/releases/example-v0.0.1-alpha.1-windows-amd64.tar.gz"
- os: macos-latest
platform: macos
output: "build/releases/example-v0.0.1-alpha.1-macos-arm64.tar.gz"

0 comments on commit 1f48197

Please sign in to comment.