Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.

Commit 98477e4

Browse files
committed
Re-add if
1 parent 2342535 commit 98477e4

File tree

1 file changed

+31
-32
lines changed

1 file changed

+31
-32
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,52 +22,51 @@ jobs:
2222
matrix:
2323
language: [Java, C++]
2424
example: [
25-
Alternate Encoder,
26-
Analog Feedback Device,
25+
# Alternate Encoder,
26+
# Analog Feedback Device,
2727
Arcade Drive With CAN,
28-
Arcade Drive with PWM,
29-
Bus Measurements,
30-
Encoder Feedback Device,
31-
Get and Set Parameters,
32-
Limit Switch,
33-
Motor Follower,
34-
Position Closed Loop Control,
35-
Read Encoder Values,
36-
Smart Motion Example,
37-
Soft Limits,
38-
Tank Drive With CAN,
39-
Velocity Closed Loop Control,
28+
# Arcade Drive with PWM,
29+
# Bus Measurements,
30+
# Encoder Feedback Device,
31+
# Get and Set Parameters,
32+
# Limit Switch,
33+
# Motor Follower,
34+
# Position Closed Loop Control,
35+
# Read Encoder Values,
36+
# Smart Motion Example,
37+
# Soft Limits,
38+
# Tank Drive With CAN,
39+
# Velocity Closed Loop Control,
4040
]
4141
include:
4242
- example: Arcade Drive With CAN
4343
skip-java: true
44-
- example: Arcade Drive with PWM
45-
skip-java: true
46-
- example: Motor Follower
47-
skip-cpp: true
48-
- example: Tank Drive With CAN
49-
skip-cpp: true
44+
# - example: Arcade Drive with PWM
45+
# skip-java: true
46+
# - example: Motor Follower
47+
# skip-cpp: true
48+
# - example: Tank Drive With CAN
49+
# skip-cpp: true
5050
name: Build ${{ matrix.example }} - ${{ matrix.language }}
5151
runs-on: ubuntu-latest
5252
container: wpilib/roborio-cross-ubuntu:2024-22.04
53+
if: (matrix.language == 'Java' && !matrix.skip-java) || (matrix.language == 'C++' && !matrix.skip-cpp)
5354
steps:
5455
- name: Checkout
5556
uses: actions/checkout@v3
5657

57-
# - name: Cache
58-
# uses: actions/cache@v3
59-
# # if: (matrix.language == 'Java' && !matrix.skip-java) || (matrix.language == 'C++' && !matrix.skip-cpp)
60-
# with:
61-
# path: |
62-
# ${{ matrix.language }}/${{ matrix.example }}/.gradle
63-
# ${{ matrix.language }}/${{ matrix.example }}/bin
64-
# ${{ matrix.language }}/${{ matrix.example }}/build
65-
# key: ${{ matrix.example }}-${{ matrix.language }}-build-${{ github.sha }}
66-
# restore-keys: |
67-
# ${{ matrix.example }}-${{ matrix.language }}-build-
58+
- name: Cache
59+
uses: actions/cache@v3
60+
with:
61+
path: |
62+
${{ matrix.language }}/${{ matrix.example }}/.gradle
63+
${{ matrix.language }}/${{ matrix.example }}/bin
64+
${{ matrix.language }}/${{ matrix.example }}/build
65+
key: ${{ matrix.example }}-${{ matrix.language }}-build-${{ github.sha }}
66+
restore-keys: |
67+
${{ matrix.example }}-${{ matrix.language }}-build-
6868
6969
- name: Build
70-
# if: (matrix.language == 'Java' && !matrix.skip-java) || (matrix.language == 'C++' && !matrix.skip-cpp)
7170
run: |
7271
cd "${{ matrix.language }}"
7372
cd "${{ matrix.example }}"

0 commit comments

Comments
 (0)