Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
27bd5be
✨ Add version manifest
denialhaag Jan 29, 2026
e91fbfc
Update changelog
denialhaag Jan 29, 2026
2435d82
Use environment variable for GitHub token
denialhaag Jan 29, 2026
0079f85
Get releases from all pages
denialhaag Jan 29, 2026
c231d47
Simplify action/checkout call
denialhaag Jan 29, 2026
b7107e4
Allow prek to fail
denialhaag Jan 29, 2026
c676f0d
Update dist
denialhaag Jan 29, 2026
ec8078d
Address the Rabbit's comments
denialhaag Jan 29, 2026
4a9e452
Test if the workflow works
denialhaag Jan 29, 2026
d8fbe05
Revert "Test if the workflow works"
denialhaag Jan 29, 2026
70ee803
Make helper function synchronous
denialhaag Jan 29, 2026
8498afd
Explicitly sort manifest entries
denialhaag Jan 31, 2026
3225136
Use documentation label
denialhaag Feb 2, 2026
6623742
Add docstrings
denialhaag Feb 2, 2026
04c07ce
Update lock file
denialhaag Feb 2, 2026
fd2e4dd
Update dist
denialhaag Feb 2, 2026
9057203
♻️ rename `update-version-manifest` to `update-known-versions` throug…
burgholzer Feb 2, 2026
0164413
Use version manifest for getting download URLs
denialhaag Feb 3, 2026
56c3f6a
Split manifest module
denialhaag Feb 3, 2026
ae7fba8
Address the Rabbit's comments
denialhaag Feb 3, 2026
eb0c34e
Address remaining comments
denialhaag Feb 3, 2026
2895bc9
Add docstrings
denialhaag Feb 3, 2026
52001dd
Add test
denialhaag Feb 3, 2026
aea9e94
Remove formatting step
denialhaag Feb 3, 2026
4fa4fc5
Add list of available versions to README
denialhaag Feb 3, 2026
84227d3
Address the Rabbit's comments
denialhaag Feb 3, 2026
e853306
Hopefully fix test
denialhaag Feb 3, 2026
d4302ea
Fix condition
denialhaag Feb 3, 2026
dff47ba
Address the Rabbit's comments
denialhaag Feb 3, 2026
041b05b
Only add latest release of a single version to manifest
denialhaag Feb 3, 2026
7474df8
Do not sort hashes alphabetically
denialhaag Feb 3, 2026
76ff9a8
Move file locations to constants
denialhaag Feb 3, 2026
c8cd1ab
Rename getMlirUrl
denialhaag Feb 3, 2026
3690938
Protect manifest generation against invalid asset names
denialhaag Feb 3, 2026
dcc51c3
Address the Rabbit's comments
denialhaag Feb 3, 2026
f6531b4
Add zstd download URL to version manifest
denialhaag Feb 4, 2026
809b142
Remove token from action inputs
denialhaag Feb 4, 2026
96aa554
Add types module
denialhaag Feb 4, 2026
d184d65
Update license
denialhaag Feb 4, 2026
e45c4f9
Improve tests
denialhaag Feb 4, 2026
17d1e20
Address the Rabbit's comments
denialhaag Feb 4, 2026
7efb2d1
Normalize all strings
denialhaag Feb 4, 2026
a9ef8d8
Always use most recent zstd binary
denialhaag Feb 4, 2026
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
5 changes: 3 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Check Action distribution
name: Check action distribution

on:
push:
branches:
Expand All @@ -16,7 +17,7 @@ permissions:

jobs:
check-dist:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CodeQL Advanced
name: CodeQL

on:
push:
Expand All @@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
runs-on: ubuntu-slim
permissions:
# required for all workflows
security-events: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97 # v6.2.0
id: release-drafter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
needs:
- test-installer-scripts
- integration-tests
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/update-known-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update known versions

on:
workflow_dispatch:
schedule:
- cron: "0 4 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: {}

jobs:
build:
runs-on: ubuntu-slim
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: true
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 24
- name: Update known versions
id: update-known-versions
run: node dist/update-known-versions/index.js
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Create pull request
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
with:
commit-message: 👷 Update known versions
title: 👷 Update known versions for ${{ steps.update-known-versions.outputs.latest-tag }}
body: This PR updates the known versions to include `${{ steps.update-known-versions.outputs.latest-tag }}`.
base: main
labels: "documentation"
branch: update-known-versions
delete-branch: true
4 changes: 2 additions & 2 deletions .license-tools-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": {
"name": "Munich Quantum Software Company GmbH\nCopyright (c) 2025 Chair for Design Automation, TUM",
"years": [2025]
"name": "Munich Quantum Software Company GmbH\nCopyright (c) 2025 - 2026 Chair for Design Automation, TUM",
"years": [2025, 2026]
},
"force_author": true,
"custom_license": "Licensed under the Apache License v2.0 with LLVM Exceptions (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://llvm.org/LICENSE.txt\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nSPDX-License-Identifier: Apache-2.0 WITH LLVM-exception",
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ This project adheres to [Semantic Versioning], with the exception that minor rel

## [Unreleased]

### Added

- ✨ Add version manifest ([#79]) ([**@denialhaag**], [**@burgholzer**])

## [1.1.0] - 2026-01-07

### Added
Expand Down Expand Up @@ -57,6 +61,7 @@ _This is the initial release of the `setup-mlir` project._

<!-- PR links -->

[#79]: https://github.com/munich-quantum-software/setup-mlir/pull/79
[#61]: https://github.com/munich-quantum-software/setup-mlir/pull/61
[#51]: https://github.com/munich-quantum-software/setup-mlir/pull/51
[#49]: https://github.com/munich-quantum-software/setup-mlir/pull/49
Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,25 @@ This repository provides an action for setting up MLIR in GitHub Actions and ins

The MLIR binaries are built and distributed in the [`portable-mlir-toolchain`](https://github.com/munich-quantum-software/portable-mlir-toolchain/) repository.

<!--- BEGIN: AUTO-GENERATED LIST. DO NOT EDIT. -->

List of available LLVM versions:

- `21.1.8`

List of available LLVM commit hashes:

- `113f01aa82d055410f22a9d03b3468fa68600589`
- `f8cb7987c64dcffb72414a40560055cb717dbf74`

<!--- END: AUTO-GENERATED LIST. DO NOT EDIT. -->

For more information on the available LLVM versions and commit hashes, see [`version-manifest.json`](./version-manifest.json).

## GitHub Actions

```yaml
- name: Setup MLIR
- name: Set up MLIR
uses: munich-quantum-software/setup-mlir@v1.1.0
with:
llvm-version: 21.1.8
Expand All @@ -20,7 +35,7 @@ This extracts a pre-built MLIR installation, adds the binaries to `$PATH`, and d
On Windows, you can optionally install debug builds:

```yaml
- name: Setup MLIR (Debug)
- name: Set up MLIR (Debug)
uses: munich-quantum-software/setup-mlir@v1.1.0
with:
llvm-version: 21.1.8
Expand All @@ -35,7 +50,8 @@ The scripts automatically download and use a platform-specific `zstd` binary for

> [!NOTE]
>
> `tar` is included by default in Windows 10 and Windows 11. If you're using an older version, you can install it, for example, via [Chocolatey](https://chocolatey.org/): `choco install tar`.
> `tar` is included by default in Windows 10 and Windows 11.
> If you're using an older version, you can install it, for example, via [Chocolatey](https://chocolatey.org/): `choco install tar`.

On Linux and macOS, use the following Bash command:

Expand Down
Loading
Loading