Skip to content

Create ci.yml#2

Closed
APConduct wants to merge 1 commit intomainfrom
APConduct-ci-test
Closed

Create ci.yml#2
APConduct wants to merge 1 commit intomainfrom
APConduct-ci-test

Conversation

@APConduct
Copy link
Collaborator

No description provided.

@APConduct APConduct requested a review from Copilot May 20, 2025 16:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new GitHub Actions CI workflow file to automate build and lint jobs on multiple operating systems.

  • Implements build steps including checkout, Node.js setup, Rust installation, Gleam setup, and building both frontend and a Tauri app.
  • Adds a lint job on Ubuntu that verifies TypeScript and Rust formatting and errors.

Comment on lines +32 to +42
if: matrix.platform != 'windows-latest'

- name: Install Gleam (Windows)
run: |
iwr https://github.com/gleam-lang/gleam/releases/download/v0.32.0/gleam-v0.32.0-windows-x86_64.zip -OutFile gleam.zip
Expand-Archive -Path gleam.zip -DestinationPath .
Move-Item -Path .\gleam.exe -Destination $env:USERPROFILE\.cargo\bin\gleam.exe
if: matrix.platform == 'windows-latest'

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
Copy link

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider wrapping the conditional expression in ${{ }} for improved clarity and consistency (e.g., if: ${{ matrix.platform != 'windows-latest' }}).

Suggested change
if: matrix.platform != 'windows-latest'
- name: Install Gleam (Windows)
run: |
iwr https://github.com/gleam-lang/gleam/releases/download/v0.32.0/gleam-v0.32.0-windows-x86_64.zip -OutFile gleam.zip
Expand-Archive -Path gleam.zip -DestinationPath .
Move-Item -Path .\gleam.exe -Destination $env:USERPROFILE\.cargo\bin\gleam.exe
if: matrix.platform == 'windows-latest'
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
if: ${{ matrix.platform != 'windows-latest' }}
- name: Install Gleam (Windows)
run: |
iwr https://github.com/gleam-lang/gleam/releases/download/v0.32.0/gleam-v0.32.0-windows-x86_64.zip -OutFile gleam.zip
Expand-Archive -Path gleam.zip -DestinationPath .
Move-Item -Path .\gleam.exe -Destination $env:USERPROFILE\.cargo\bin\gleam.exe
if: ${{ matrix.platform == 'windows-latest' }}
- name: Install dependencies (ubuntu only)
if: ${{ matrix.platform == 'ubuntu-20.04' }}

Copilot uses AI. Check for mistakes.
Comment on lines +32 to +42
if: matrix.platform != 'windows-latest'

- name: Install Gleam (Windows)
run: |
iwr https://github.com/gleam-lang/gleam/releases/download/v0.32.0/gleam-v0.32.0-windows-x86_64.zip -OutFile gleam.zip
Expand-Archive -Path gleam.zip -DestinationPath .
Move-Item -Path .\gleam.exe -Destination $env:USERPROFILE\.cargo\bin\gleam.exe
if: matrix.platform == 'windows-latest'

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
Copy link

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using ${{ }} to wrap the conditional expression for consistency with GitHub Actions recommendations (e.g., if: ${{ matrix.platform == 'windows-latest' }}).

Suggested change
if: matrix.platform != 'windows-latest'
- name: Install Gleam (Windows)
run: |
iwr https://github.com/gleam-lang/gleam/releases/download/v0.32.0/gleam-v0.32.0-windows-x86_64.zip -OutFile gleam.zip
Expand-Archive -Path gleam.zip -DestinationPath .
Move-Item -Path .\gleam.exe -Destination $env:USERPROFILE\.cargo\bin\gleam.exe
if: matrix.platform == 'windows-latest'
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
if: ${{ matrix.platform != 'windows-latest' }}
- name: Install Gleam (Windows)
run: |
iwr https://github.com/gleam-lang/gleam/releases/download/v0.32.0/gleam-v0.32.0-windows-x86_64.zip -OutFile gleam.zip
Expand-Archive -Path gleam.zip -DestinationPath .
Move-Item -Path .\gleam.exe -Destination $env:USERPROFILE\.cargo\bin\gleam.exe
if: ${{ matrix.platform == 'windows-latest' }}
- name: Install dependencies (ubuntu only)
if: ${{ matrix.platform == 'ubuntu-20.04' }}

Copilot uses AI. Check for mistakes.
@APConduct APConduct closed this May 20, 2025
@APConduct APConduct deleted the APConduct-ci-test branch May 20, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants