Skip to content

Commit d3878b2

Browse files
update build ci
1 parent fd39665 commit d3878b2

File tree

2 files changed

+15
-70
lines changed

2 files changed

+15
-70
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: NES MLIR builder
22

3+
env:
4+
MLIR_VERSION: 20.1.5
5+
36
on:
47
push:
58
tags:
@@ -11,11 +14,11 @@ jobs:
1114
env:
1215
VCPKG_DEP_LIST: x64-linux
1316
VCPKG_FEATURE_FLAGS: -binarycaching
14-
runs-on: [self-hosted, linux, X64, dep-builder]
17+
runs-on: [self-hosted, linux, x64]
1518
strategy:
1619
fail-fast: false
1720
matrix:
18-
osversion: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
21+
osversion: [ubuntu-22.04, ubuntu-24.04]
1922
steps:
2023
- uses: AutoModality/action-clean@v1
2124
- uses: actions/checkout@v2
@@ -36,13 +39,13 @@ jobs:
3639
- name: Compress artifacts
3740
id: compressdeps
3841
run: |
39-
7z a mlir-19.1.6-${{ matrix.osversion }}-X64.7z mlir -mx9 -aoa
42+
7z a mlir-${{ env.MLIR_VERSION }}-${{ matrix.osversion }}-X64.7z mlir -mx9 -aoa
4043
- name: Release
4144
uses: softprops/action-gh-release@v1
4245
id: createrelease
4346
with:
4447
files: |
45-
mlir-19.1.6-${{ matrix.osversion }}-X64.7z
48+
mlir-${{ env.MLIR_VERSION }}-${{ matrix.osversion }}-X64.7z
4649
- name: Clean build artifacts
4750
id: cleanbuildartifacts
4851
if: always()
@@ -61,10 +64,10 @@ jobs:
6164
env:
6265
VCPKG_DEP_LIST: arm64-linux
6366
VCPKG_FEATURE_FLAGS: -binarycaching
64-
runs-on: [self-hosted, linux, ARM64, dep-builder]
67+
runs-on: [self-hosted, linux, arm64]
6568
strategy:
6669
matrix:
67-
osversion: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
70+
osversion: [ubuntu-22.04, ubuntu-24.04]
6871
steps:
6972
- uses: AutoModality/action-clean@v1
7073
- uses: actions/checkout@v2
@@ -85,13 +88,13 @@ jobs:
8588
- name: Compress artifacts
8689
id: compressdeps
8790
run: |
88-
7z a mlir-19.1.6-${{ matrix.osversion }}-arm64.7z mlir -mx9 -aoa
91+
7z a mlir-${{ env.MLIR_VERSION }}-${{ matrix.osversion }}-arm64.7z mlir -mx9 -aoa
8992
- name: Release
9093
uses: softprops/action-gh-release@v1
9194
id: createrelease
9295
with:
9396
files: |
94-
mlir-19.1.6-${{ matrix.osversion }}-arm64.7z
97+
mlir-${{ env.MLIR_VERSION }}-${{ matrix.osversion }}-arm64.7z
9598
- name: Clean build artifacts
9699
id: cleanbuildartifacts
97100
if: always()
@@ -111,7 +114,7 @@ jobs:
111114
env:
112115
VCPKG_DEP_LIST: arm64-osx
113116
VCPKG_FEATURE_FLAGS: -binarycaching
114-
runs-on: [self-hosted, macos, ARM64]
117+
runs-on: [macos-15]
115118
steps:
116119
- uses: lukka/get-cmake@latest
117120
- uses: actions/checkout@v2
@@ -128,49 +131,16 @@ jobs:
128131
- name: Compress artifacts
129132
id: compressdeps
130133
run: |
131-
7z a mlir-19.1.6-osx-arm64.7z mlir -mx9 -aoa
134+
7z a mlir-${{ env.MLIR_VERSION }}-osx-arm64.7z mlir -mx9 -aoa
132135
- name: Release
133136
uses: softprops/action-gh-release@v1
134137
id: createrelease
135138
with:
136139
files: |
137-
mlir-19.1.6-osx-arm64.7z
140+
mlir-${{ env.MLIR_VERSION }}-osx-arm64.7z
138141
- name: Clean build artifacts
139142
id: cleanbuildartifacts
140143
if: always()
141144
run: |
142145
rm -rf mlir
143-
build-x64-osx:
144-
timeout-minutes: 360
145-
env:
146-
VCPKG_DEP_LIST: x64-osx
147-
VCPKG_FEATURE_FLAGS: -binarycaching
148-
runs-on: [ self-hosted, macos, X64, dep-builder ]
149-
steps:
150-
- uses: lukka/get-cmake@latest
151-
- uses: actions/checkout@v2
152-
with:
153-
submodules: 'recursive'
154-
- name: Set output vars to the actual tag name
155-
id: vars
156-
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
157-
- name: Build OSX x64 MLIR
158-
id: buildmlir
159-
run: |
160-
${{ github.workspace }}/build_osx-x64.sh
161-
shell: bash
162-
- name: Compress artifacts
163-
id: compressdeps
164-
run: |
165-
7z a mlir-19.1.6-osx-x64.7z mlir -mx9 -aoa
166-
- name: Release
167-
uses: softprops/action-gh-release@v1
168-
id: createrelease
169-
with:
170-
files: |
171-
mlir-19.1.6-osx-x64.7z
172-
- name: Clean build artifacts
173-
id: cleanbuildartifacts
174-
if: always()
175-
run: |
176-
sudo rm -rf mlir
146+

docker/Dockerfile-ubuntu-18.04

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)