@@ -42,13 +42,11 @@ jobs:
4242
4343 ALL_RUST_PROJECTS=("2015" "2018" "2019/aoc_rust" "2020/01" "2021/_1" "2021/_2" "2021/_3" "2021/_4" "2021/_5" "2021/_6" "2021/_7" "2022" "2025/rust" "runner")
4444 ALL_GO_PROJECTS=("2017" "2019/go" "2020/02" "2024/golang")
45- ALL_CSHARP_PROJECTS=("2021/cs/1" "2021/cs/2")
46- ALL_ZIG_PROJECTS=("2024/zig")
45+ ALL_ZIG_PROJECTS=("2021/zig" "2024/zig")
4746
4847 if echo "$CHANGED_FILES" | grep -qE "$TRIGGER_ALL"; then
4948 RUST_PROJECTS=$(printf '%s\n' "${ALL_RUST_PROJECTS[@]}" | jq -R . | jq -s -c .)
5049 GO_PROJECTS=$(printf '%s\n' "${ALL_GO_PROJECTS[@]}" | jq -R . | jq -s -c .)
51- CSHARP_PROJECTS=$(printf '%s\n' "${ALL_CSHARP_PROJECTS[@]}" | jq -R . | jq -s -c .)
5250 ZIG_PROJECTS=$(printf '%s\n' "${ALL_ZIG_PROJECTS[@]}" | jq -R . | jq -s -c .)
5351 else
5452 RUST_PROJECTS=()
@@ -59,24 +57,18 @@ jobs:
5957 for project in "${ALL_GO_PROJECTS[@]}"; do
6058 if echo "$CHANGED_FILES" | grep -q "^${project}/"; then GO_PROJECTS+=("$project"); fi
6159 done
62- CSHARP_PROJECTS=()
63- for project in "${ALL_CSHARP_PROJECTS[@]}"; do
64- if echo "$CHANGED_FILES" | grep -q "^${project}/"; then CSHARP_PROJECTS+=("$project"); fi
65- done
6660 ZIG_PROJECTS=()
6761 for project in "${ALL_ZIG_PROJECTS[@]}"; do
6862 if echo "$CHANGED_FILES" | grep -q "^${project}/"; then ZIG_PROJECTS+=("$project"); fi
6963 done
7064
7165 RUST_PROJECTS=$(printf '%s\n' "${RUST_PROJECTS[@]}" | jq -R . | jq -s -c .)
7266 GO_PROJECTS=$(printf '%s\n' "${GO_PROJECTS[@]}" | jq -R . | jq -s -c .)
73- CSHARP_PROJECTS=$(printf '%s\n' "${CSHARP_PROJECTS[@]}" | jq -R . | jq -s -c .)
7467 ZIG_PROJECTS=$(printf '%s\n' "${ZIG_PROJECTS[@]}" | jq -R . | jq -s -c .)
7568 fi
7669
7770 echo "rust_projects=$RUST_PROJECTS" >> $GITHUB_OUTPUT
7871 echo "go_projects=$GO_PROJECTS" >> $GITHUB_OUTPUT
79- echo "csharp_projects=$CSHARP_PROJECTS" >> $GITHUB_OUTPUT
8072 echo "zig_projects=$ZIG_PROJECTS" >> $GITHUB_OUTPUT
8173
8274 rust_tests :
@@ -124,27 +116,6 @@ jobs:
124116 run : go test ./...
125117 working-directory : ${{ matrix.project }}
126118
127- csharp_tests :
128- needs : detect_changes
129- if : needs.detect_changes.outputs.csharp_projects != '[]'
130- runs-on : ubuntu-latest
131- strategy :
132- fail-fast : false
133- matrix :
134- project : ${{ fromJson(needs.detect_changes.outputs.csharp_projects) }}
135- steps :
136- - uses : actions/checkout@v4
137- - name : Set up .NET
138- uses : actions/setup-dotnet@v4
139- with :
140- dotnet-version : ' 6.0.x'
141- - name : Restore dependencies
142- run : dotnet restore
143- working-directory : ${{ matrix.project }}
144- - name : Run C# tests
145- run : dotnet test || true
146- working-directory : ${{ matrix.project }}
147-
148119 zig_tests :
149120 needs : detect_changes
150121 if : needs.detect_changes.outputs.zig_projects != '[]'
0 commit comments