Skip to content

Commit 7d6b19b

Browse files
committed
Use latest GitHub actions/checkout@v4
This fixes some deprecation warnings about old NodeJS. Also fix some trailing space issues by side effect.
1 parent 5ef3076 commit 7d6b19b

9 files changed

+109
-110
lines changed

.github/workflows/buildAndTest.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
# Clone the repo and its submodules. Do shallow clone to save clone
4040
# time.
4141
- name: Get the project repository
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 2
4545
submodules: "true"
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Install Python packages
5252
run: |
53-
53+
5454
pip install -r python/requirements.txt
5555
5656
- name: Install packages
@@ -80,7 +80,7 @@ jobs:
8080
- name: Get MLIR
8181
id: mlir-wheels
8282
run: |
83-
83+
8484
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
8585
pip -q download mlir==$VERSION \
8686
-f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro
@@ -98,10 +98,10 @@ jobs:
9898
- name: Build and test (Assert)
9999
if: matrix.build_type == 'Assert'
100100
run: |
101-
101+
102102
mkdir build_assert
103103
cd build_assert
104-
104+
105105
cmake .. \
106106
-GNinja \
107107
-DCMAKE_BUILD_TYPE=Debug \
@@ -124,7 +124,7 @@ jobs:
124124
-DLLVM_USE_LINKER=lld \
125125
-DLLVM_EXTERNAL_LIT=$(which lit) \
126126
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
127-
127+
128128
ninja
129129
ninja check-aie
130130
ninja check-tutorials
@@ -134,10 +134,10 @@ jobs:
134134
- name: Build and test (Release)
135135
if: matrix.build_type == 'Release'
136136
run: |
137-
137+
138138
mkdir build_release
139139
cd build_release
140-
140+
141141
cmake .. \
142142
-G Ninja \
143143
-DCMAKE_BUILD_TYPE=Release \
@@ -159,7 +159,7 @@ jobs:
159159
-DLLVM_DIR=$PWD/../mlir/lib/cmake/llvm \
160160
-DLLVM_USE_LINKER=lld \
161161
-DLLVM_EXTERNAL_LIT=$(which lit)
162-
162+
163163
ninja
164164
ninja check-aie
165165
ninja check-tutorials

.github/workflows/buildAndTestMulti.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
# Clone the repo and its submodules. Do shallow clone to save clone
6969
# time.
7070
- name: Get the project repository
71-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
7272
with:
7373
fetch-depth: 2
7474
submodules: "true"
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: Install Python packages
8181
run: |
82-
82+
8383
pip install -r python/requirements.txt
8484
8585
- name: Setup Cpp
@@ -103,7 +103,7 @@ jobs:
103103
- name: Get MLIR
104104
id: mlir-wheels
105105
run: |
106-
106+
107107
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
108108
if [ x"${{ matrix.ENABLE_RTTI }}" == x"OFF"]; then
109109
WHEEL=mlir_no_rtti
@@ -117,16 +117,16 @@ jobs:
117117
# Build the repo test target in release mode to build and test.
118118
- name: Build and test
119119
run: |
120-
120+
121121
mkdir build_release
122122
cd build_release
123-
123+
124124
if [ x"${{ contains(matrix.OS, 'windows') }}" == x"true" ]; then
125125
LLVM_EXTERNAL_LIT="$(where lit)"
126126
else
127127
LLVM_EXTERNAL_LIT="$(which lit)"
128128
fi
129-
129+
130130
cmake .. \
131131
-G Ninja \
132132
-DCMAKE_BUILD_TYPE=Release \
@@ -145,7 +145,7 @@ jobs:
145145
-DMLIR_DIR=$PWD/../mlir/lib/cmake/mlir \
146146
-DLLVM_DIR=$PWD/../mlir/lib/cmake/llvm \
147147
-DLLVM_EXTERNAL_LIT="$LLVM_EXTERNAL_LIT"
148-
148+
149149
ninja
150150
# tests hang/fail on windows
151151
if [ x"${{ contains(matrix.OS, 'windows') }}" == x"false" ]; then

.github/workflows/buildAndTestPythons.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# Clone the repo and its submodules. Do shallow clone to save clone
4141
# time.
4242
- name: Get the project repository
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
fetch-depth: 2
4646
submodules: "true"
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Install Python packages
5353
run: |
54-
54+
5555
pip install -r python/requirements.txt
5656
5757
- name: Install packages
@@ -81,7 +81,7 @@ jobs:
8181
- name: Get MLIR
8282
id: mlir-wheels
8383
run: |
84-
84+
8585
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
8686
pip -q download mlir==$VERSION \
8787
-f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro
@@ -99,10 +99,10 @@ jobs:
9999
- name: Build and test (Assert)
100100
if: matrix.build_type == 'Assert'
101101
run: |
102-
102+
103103
mkdir build_assert
104104
cd build_assert
105-
105+
106106
cmake .. \
107107
-GNinja \
108108
-DCMAKE_BUILD_TYPE=Debug \
@@ -124,7 +124,7 @@ jobs:
124124
-DLLVM_USE_LINKER=lld \
125125
-DLLVM_EXTERNAL_LIT=$(which lit) \
126126
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
127-
127+
128128
ninja
129129
ninja check-aie
130130
ninja check-tutorials
@@ -134,10 +134,10 @@ jobs:
134134
- name: Build and test (Release)
135135
if: matrix.build_type == 'Release'
136136
run: |
137-
137+
138138
mkdir build_release
139139
cd build_release
140-
140+
141141
cmake .. \
142142
-G Ninja \
143143
-DCMAKE_BUILD_TYPE=Release \
@@ -158,7 +158,7 @@ jobs:
158158
-DLLVM_DIR=$PWD/../mlir/lib/cmake/llvm \
159159
-DLLVM_USE_LINKER=lld \
160160
-DLLVM_EXTERNAL_LIT=$(which lit)
161-
161+
162162
ninja
163163
ninja check-aie
164164
ninja check-tutorials

.github/workflows/buildAndTestRyzenAI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131

3232
steps:
3333

34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
with:
3636
submodules: "true"
3737

3838
- name: Run commands
3939
run: |
40-
40+
4141
pip cache purge
42-
42+
4343
python -m venv aie-venv
4444
source aie-venv/bin/activate
4545
pip install -r python/requirements.txt
@@ -55,7 +55,7 @@ jobs:
5555
# That means wheels have file with time stamps in the future which makes ninja loop
5656
# forever when configuring. Set the time to some arbitrary stamp in the past just to be safe.
5757
find mlir -exec touch -a -m -t 201108231405.14 {} \;
58-
58+
5959
mkdir build
6060
pushd build
6161

.github/workflows/buildRyzenWheels.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
schedule:
88
# At 04:00. (see https://crontab.guru)
99
- cron: '0 4 * * *'
10-
10+
1111
defaults:
1212
run:
1313
shell: bash
14-
14+
1515
concurrency:
1616
# A PR number if a pull request and otherwise the commit hash. This cancels
1717
# queued and in-progress runs for the same PR (presubmit) or commit
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737

38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
with:
4040
submodules: "true"
4141

@@ -45,9 +45,9 @@ jobs:
4545

4646
- name: Build mlir-aie distro
4747
run: |
48-
48+
4949
pip cache purge
50-
50+
5151
python -m venv aie-venv
5252
source aie-venv/bin/activate
5353
pip install -r python/requirements.txt
@@ -60,7 +60,7 @@ jobs:
6060
# That means wheels have file with time stamps in the future which makes ninja loop
6161
# forever when configuring. Set the time to some arbitrary stamp in the past just to be safe.
6262
find mlir -exec touch -a -m -t 201108231405.14 {} \;
63-
63+
6464
export PATH=/opt/Xilinx/Vitis/2023.2/bin:/opt/Xilinx/Vitis/2023.2/aietools/bin:$PATH
6565
export MLIR_INSTALL_ABS_PATH=$PWD/mlir
6666
export MLIR_AIE_SOURCE_DIR=$PWD
@@ -69,14 +69,14 @@ jobs:
6969
export XRT_ROOT=/opt/xilinx/xrt
7070
export AIE_PROJECT_COMMIT=$(git rev-parse --short HEAD)
7171
export DATETIME=$(date +"%Y%m%d%H")
72-
72+
7373
pushd utils/mlir_aie_wheels
74-
74+
7575
pip install wheel auditwheel patchelf importlib_metadata
7676
CIBW_ARCHS=x86_64 pip wheel . -v -w $WHEELHOUSE_DIR --no-build-isolation
77-
77+
7878
popd
79-
79+
8080
auditwheel repair -w $WHEELHOUSE_DIR/repaired_wheel $WHEELHOUSE_DIR/mlir_aie-*.whl --plat manylinux_2_35_x86_64 --exclude libcdo_driver.so --exclude libmlir_float16_utils.so
8181
WHL_FN=$(ls $WHEELHOUSE_DIR/repaired_wheel/mlir_aie*whl)
8282
mv "$WHL_FN" "`echo $WHL_FN | sed "s/cp310-cp310/py3-none/"`"
@@ -120,7 +120,7 @@ jobs:
120120

121121
steps:
122122
- name: Get the project repository
123-
uses: actions/checkout@v3
123+
uses: actions/checkout@v4
124124
with:
125125
fetch-depth: 2
126126
submodules: "true"
@@ -148,15 +148,15 @@ jobs:
148148
# That means wheels have file with time stamps in the future which makes ninja loop
149149
# forever when configuring. Set the time to some arbitrary stamp in the past just to be safe.
150150
find mlir -exec touch -a -m -t 201108231405.14 {} \;
151-
151+
152152
unzip -q mlir_aie-*.whl
153153
find mlir_aie -exec touch -a -m -t 201108231405.14 {} \;
154-
154+
155155
python -m venv aie-venv
156156
source aie-venv/bin/activate
157157
pip install -r python/requirements.txt
158158
source aie-venv/bin/activate
159-
159+
160160
export MLIR_INSTALL_ABS_PATH=$PWD/mlir
161161
export MLIR_AIE_INSTALL_ABS_PATH=$PWD/mlir_aie
162162
export WHEELHOUSE_DIR=$PWD/wheelhouse
@@ -165,17 +165,17 @@ jobs:
165165
export XRT_ROOT=/opt/xilinx/xrt
166166
export AIE_PROJECT_COMMIT=$(git rev-parse --short HEAD)
167167
export DATETIME=$(date +"%Y%m%d%H")
168-
168+
169169
cp python/requirements.txt utils/mlir_aie_wheels/python_bindings
170170
cp python/aie-python-extras-req.txt utils/mlir_aie_wheels/python_bindings
171-
171+
172172
pushd utils/mlir_aie_wheels/python_bindings
173-
173+
174174
pip install wheel auditwheel patchelf
175175
CIBW_ARCHS=x86_64 pip wheel . -v -w $WHEELHOUSE_DIR --no-build-isolation
176-
176+
177177
popd
178-
178+
179179
auditwheel repair -w $WHEELHOUSE_DIR/repaired_wheel $WHEELHOUSE_DIR/aie_python_bindings-*whl --plat manylinux_2_35_x86_64
180180
181181
- uses: geekyeggo/delete-artifact@v4

.github/workflows/generateDocs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# Clone the repo and its submodules. Do shallow clone to save clone
2424
# time.
2525
- name: Get the project repository
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 2
2929
submodules: "true"
@@ -58,7 +58,7 @@ jobs:
5858
- name: Get MLIR
5959
id: mlir-wheels
6060
run: |
61-
61+
6262
VERSION=$(utils/clone-llvm.sh --get-wheel-version)
6363
pip -q download mlir==$VERSION \
6464
-f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/mlir-distro
@@ -71,10 +71,10 @@ jobs:
7171
# Build the repo test target in release mode to build and test.
7272
- name: Build Docs
7373
run: |
74-
74+
7575
mkdir build_release
7676
pushd build_release
77-
77+
7878
cmake .. \
7979
-DCMAKE_BUILD_TYPE=Release \
8080
-DLLVM_ENABLE_ASSERTIONS=OFF \

0 commit comments

Comments
 (0)