Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
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: 14 additions & 14 deletions .github/workflows/dmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ name: dmd

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

permissions:
contents: read

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
dc: [ dmd-latest ]
matrix:
os: [ubuntu-latest, windows-latest]
dc: [dmd-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Checkout Source
uses: actions/checkout@v6

- name: D Compiler Installation
uses: dlang-community/setup-dlang@v1.2.0
with:
compiler: ${{ matrix.dc }}
- name: D Compiler Installation
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}
Comment on lines +25 to +28
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

REPO="dlang-community/setup-dlang"
API="https://api.github.com/repos/$REPO"

echo "Checking tags for v2..."
curl -s "$API/tags" | jq -r '.[].name' | sed -n '1,200p' > /tmp/tags.txt || true
if grep -q '^v2$' /tmp/tags.txt; then
  echo "TAG_FOUND: v2"
else
  echo "TAG_NOT_FOUND: v2"
fi

echo
echo "Checking releases for tag v2..."
curl -s "$API/releases" | jq -r '.[] | {tag_name, prerelease, draft, published_at} | @json' | sed -n '1,200p' > /tmp/releases.json || true
jq -r '.tag_name' /tmp/releases.json 2>/dev/null | sed -n '1,50p' > /tmp/release_tags.txt || true
if grep -q '^v2$' /tmp/release_tags.txt; then
  echo "RELEASE_FOUND: v2"
else
  echo "RELEASE_NOT_FOUND: v2"
fi

echo
echo "Showing latest 5 release tags (if any):"
jq -r '.tag_name + "  (prerelease: " + (.prerelease|tostring) + ", draft: " + (.draft|tostring) + ", published_at: " + (.published_at // "null") + ")"' /tmp/releases.json 2>/dev/null | sed -n '1,5p' || echo "No releases returned."

echo
echo "Searching issues mentioning Windows or windows-latest..."
# Use the search API for issues in the repo mentioning windows
curl -s "https://api.github.com/search/issues?q=repo:$REPO+windows&per_page=5" | jq -r '.items[] | {number, title, html_url}' | sed -n '1,50p' || echo "No matching issues."

echo
echo "Checking README for windows mentions..."
curl -s "$API/readme" | jq -r '.content' | base64 --decode 2>/dev/null | rg -n "Windows|windows|windows-latest" || echo "No explicit 'Windows' mention found in README snippet."

echo
echo "Done."

Repository: gdamore/dcell

Length of output: 2313


Use an existing action ref (or add a v2 tag) and monitor Windows CI

There is no 'v2' tag in dlang-community/setup-dlang; the repository has a release/tag named 'v2.0.0'. Change the workflow to use dlang-community/[email protected] (or create a 'v2' tag in that repo). The action supports Windows (README includes windows-latest examples) but there are several Windows-related issues in the repo — run and watch windows-latest CI for platform-specific failures.

🤖 Prompt for AI Agents
.github/workflows/dmd.yml lines 25-28: the workflow references
dlang-community/setup-dlang@v2 but that tag does not exist; update the action
ref to a real release (e.g. dlang-community/[email protected]) or ensure the
upstream repo has a v2 tag, and then run CI on windows-latest to detect
platform-specific failures — change the uses line to point to the exact tag
(v2.0.0) and monitor Windows CI for any issues.


- name: Build and Test
run: |
dub -q test
- name: Build and Test
run: |
dub -q test
28 changes: 14 additions & 14 deletions .github/workflows/ldc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ name: ldc

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

permissions:
contents: read

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
dc: [ ldc-latest ]
matrix:
os: [ubuntu-latest, macos-latest]
dc: [ldc-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Checkout Source
uses: actions/checkout@v6

- name: D Compiler Installation
uses: dlang-community/setup-dlang@v1.2.0
with:
compiler: ${{ matrix.dc }}
- name: D Compiler Installation
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}

- name: Build and Test
run: |
dub -q test
- name: Build and Test
run: |
dub -q test