Skip to content

Add codegen check to CI #240

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 6 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
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,36 @@ jobs:

- run: make swift.fmt check=yes dockerized=no

codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable

- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgtk-3-dev libpulse-dev libudev-dev libxcomposite-dev \
libxdamage-dev libxfixes-dev libxrandr-dev libxtst-dev \
ninja-build lld-19 binutils build-essential clang
# TODO: Remove once lld-19 becomes the default in Ubuntu repositories
sudo update-alternatives --install /usr/bin/lld lld /usr/bin/lld-19 100
sudo update-alternatives --config lld
sudo update-alternatives --install /usr/bin/ld.lld ld.lld /usr/bin/ld.lld-19 100
sudo update-alternatives --config ld.lld

- run: cargo install cargo-expand

- run: make cargo.gen

- run: make flutter.fmt

- run: git status --short | (! read -t 1 -N 1)




Expand Down
Loading