Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter-actions/setup-flutter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0
Choose a base ref
...
head repository: flutter-actions/setup-flutter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Feb 3, 2022

  1. Copy the full SHA
    6cfafdb View commit details
  2. fix: linux installation

    socheatsok78 committed Feb 3, 2022
    Copy the full SHA
    b317566 View commit details
  3. feat: update variables

    socheatsok78 committed Feb 3, 2022
    Copy the full SHA
    d7127c1 View commit details
  4. Copy the full SHA
    d0be169 View commit details
  5. Copy the full SHA
    2d8300d View commit details
  6. Copy the full SHA
    8ecd383 View commit details
  7. Copy the full SHA
    b829c58 View commit details

Commits on Jun 17, 2022

  1. Copy the full SHA
    37d755b View commit details
  2. Copy the full SHA
    187b838 View commit details
  3. Copy the full SHA
    cdbfa4e View commit details
  4. Copy the full SHA
    739cfea View commit details
  5. Copy the full SHA
    cbf2b87 View commit details
  6. Copy the full SHA
    8feb4cc View commit details
  7. Copy the full SHA
    2131f2a View commit details
  8. Copy the full SHA
    fda3ea2 View commit details
  9. Copy the full SHA
    c83efbb View commit details
  10. Copy the full SHA
    0703282 View commit details
  11. Copy the full SHA
    d78de66 View commit details
  12. Copy the full SHA
    1d787f8 View commit details
  13. Copy the full SHA
    fdacc55 View commit details
  14. Copy the full SHA
    e4a8c9a View commit details
  15. Copy the full SHA
    5345835 View commit details
  16. Revert "feat(setup): update default version to v3.0.2"

    This reverts commit 739cfea.
    socheatsok78 committed Jun 17, 2022
    Copy the full SHA
    518edd6 View commit details
  17. Revert "feat(setup): update default version to v3.0.2"

    This reverts commit cdbfa4e.
    socheatsok78 committed Jun 17, 2022
    Copy the full SHA
    99ad5cd View commit details
  18. Copy the full SHA
    0bc6ae6 View commit details
  19. Copy the full SHA
    dd79e67 View commit details
  20. Merge pull request #3 from flutter-actions/feature/rework-setup-flutter

    Re-write action to support cache and Apple Silicon
    socheatsok78 authored Jun 17, 2022
    Copy the full SHA
    35d198e View commit details
  21. Copy the full SHA
    c9ecdaa View commit details
  22. Copy the full SHA
    c94e468 View commit details
  23. Copy the full SHA
    2fde878 View commit details

Commits on Jun 18, 2022

  1. Copy the full SHA
    90108de View commit details
  2. Copy the full SHA
    f69cafe View commit details
  3. Copy the full SHA
    74fc21b View commit details

Commits on Aug 12, 2022

  1. Add schedule test

    socheatsok78 authored Aug 12, 2022
    Copy the full SHA
    b9df130 View commit details

Commits on Nov 9, 2022

  1. Copy the full SHA
    e5c7e20 View commit details

Commits on Apr 1, 2023

  1. Copy the full SHA
    830f14b View commit details
  2. Update dart.yml

    socheatsok78 authored Apr 1, 2023
    Copy the full SHA
    584438c View commit details
  3. Update README.md

    socheatsok78 authored Apr 1, 2023
    Copy the full SHA
    f59ff7b View commit details

Commits on Oct 19, 2023

  1. Update setup.sh

    version: latest property support
    hurelhuyag authored Oct 19, 2023
    Copy the full SHA
    26aa4d6 View commit details

Commits on Oct 21, 2023

  1. Copy the full SHA
    e1604cf View commit details
  2. Copy the full SHA
    46e6ce1 View commit details
  3. Fix latest check logic

    Somehow the `if` statement became a single line
    socheatsok78 authored Oct 21, 2023
    Copy the full SHA
    42f0d6a View commit details
  4. Merge pull request #6 from hurelhuyag/main

    version: latest property value support
    socheatsok78 authored Oct 21, 2023
    Copy the full SHA
    4fd0258 View commit details

Commits on Apr 18, 2024

  1. Copy the full SHA
    4bcff39 View commit details
  2. Copy the full SHA
    5d287f3 View commit details
  3. Copy the full SHA
    c91fdc3 View commit details
  4. Copy the full SHA
    160af50 View commit details
  5. Copy the full SHA
    1e191bb View commit details
  6. Copy the full SHA
    34658cd View commit details
  7. Revert "Enable cache for test workflow"

    This reverts commit c91fdc3.
    socheatsok78 committed Apr 18, 2024
    Copy the full SHA
    e5a1510 View commit details
Showing with 516 additions and 177 deletions.
  1. +0 −71 .github/workflows/dart.yml
  2. +42 −0 .github/workflows/flutter-linux.yml
  3. +42 −0 .github/workflows/flutter-macos-intel.yml
  4. +42 −0 .github/workflows/flutter-macos.yml
  5. +42 −0 .github/workflows/flutter-windows.yml
  6. +43 −0 .github/workflows/flutter.yml
  7. +1 −0 .gitignore
  8. +1 −1 LICENSE
  9. +71 −42 README.md
  10. +148 −0 action.sh
  11. +36 −8 action.yml
  12. +24 −0 action_test.sh
  13. +24 −0 install.sh
  14. +0 −55 setup.sh
71 changes: 0 additions & 71 deletions .github/workflows/dart.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/flutter-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Flutter SDK for Linux

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0
with:
runs-on: ubuntu-latest
channel: stable
version: ${{ matrix.version }}

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: ubuntu-latest
channel: beta
version: ${{ matrix.version }}
42 changes: 42 additions & 0 deletions .github/workflows/flutter-macos-intel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Flutter SDK for macOS (Intel)

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0
with:
runs-on: macos-13 # Intel Mac
channel: stable
version: ${{ matrix.version }}

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: macos-13 # Intel Mac
channel: beta
version: ${{ matrix.version }}
42 changes: 42 additions & 0 deletions .github/workflows/flutter-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Flutter SDK for macOS

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0
with:
runs-on: macos-latest # Apple Silicon Mac
channel: stable
version: ${{ matrix.version }}

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: macos-latest # Apple Silicon Mac
channel: beta
version: ${{ matrix.version }}
42 changes: 42 additions & 0 deletions .github/workflows/flutter-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Flutter SDK for Windows

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0
with:
runs-on: windows-latest
channel: stable
version: ${{ matrix.version }}

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: windows-latest
channel: beta
version: ${{ matrix.version }}
43 changes: 43 additions & 0 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Flutter

on:
workflow_call:
inputs:
runs-on:
description: 'Operating system'
required: true
default: 'ubuntu-latest'
type: string
channel:
description: 'Flutter channel'
required: true
default: 'stable'
type: string
version:
description: 'Flutter version'
required: true
default: 'latest'
type: string

jobs:
flutter:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4

- uses: ./
with:
channel: ${{ inputs.channel }}
version: ${{ inputs.version }}

- name: Dart version
run: dart --version
- name: Flutter version
run: flutter --version
- name: Flutter doctor
run: flutter doctor

- name: Run hello world
run: |
echo "main() { print('hello world'); }" > hello.dart
dart hello.dart
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
home/
runner/
.setup-flutter/

# Created by https://www.toptal.com/developers/gitignore/api/osx
# Edit at https://www.toptal.com/developers/gitignore?templates=osx
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Socheat Sok
Copyright (c) 2021 Flutter Actions

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Loading