diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92fe3d8..b883e8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/setup-dart@v1.6.5 - 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 diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..8302593 --- /dev/null +++ b/.github/workflows/compile.yml @@ -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/setup-dart@v1.6.5 + 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"