Skip to content

Update dart.yml due to discontinued platform #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,44 @@

# Test the architecture input parameter.
test_arch:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
# Available runners in public repos:
# https://docs.github.com/en/actions/how-tos/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
include:
# The default MacOS tests above use x64; here we cover arm64.
- os: macos-latest
arch: arm64
sdk: dev
- os: macos-latest
arch: arm64
sdk: stable
# The default linux tests above use x64; here we cover arm64.
# There is no 'ubuntu-arm-latest' runner, so we're pinning to 24.04:
# https://github.com/orgs/community/discussions/148648#discussioncomment-11858187
- os: ubuntu-24.04-arm
arch: arm64
sdk: dev
- os: ubuntu-24.04-arm
arch: arm64
sdk: stable

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
architecture: ia32
architecture: ${{ matrix.arch }}
sdk: ${{ matrix.sdk }}

- name: Run hello world
run: |
echo "main() { print('hello world'); }" > hello.dart
dart hello.dart

# Test inferring the channel from the sdk parameter.
test_inferred_channels:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down