Skip to content

Commit

Permalink
Detect current version in CI build-dkms
Browse files Browse the repository at this point in the history
  • Loading branch information
alewycky-tenstorrent committed May 9, 2024
1 parent 7b7e8f3 commit f4d43b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
sudo apt update
sudo apt install -y dkms
sudo dkms add .
sudo dkms install tenstorrent/1.27.1
sudo dkms install tenstorrent/$(tools/current-version)
build-make:
strategy:
Expand All @@ -34,4 +34,4 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: driver-${{ matrix.os }}
path: tenstorrent.ko
path: tenstorrent.ko
6 changes: 6 additions & 0 deletions tools/current-version
@@ -0,0 +1,6 @@
#! /bin/bash

# SPDX-FileCopyrightText: © 2024 Tenstorrent Inc.
# SPDX-License-Identifier: GPL-2.0-only

sed -nE "s/^[[:space:]]*PACKAGE_VERSION[[:space:]]*=[[:space:]]*\"([^\"]+)\"/\\1/p" dkms.conf
4 changes: 2 additions & 2 deletions tools/make-installer
@@ -1,6 +1,6 @@
#! /bin/bash

# SPDX-FileCopyrightText: © 2023 Tenstorrent Inc.
# SPDX-FileCopyrightText: © 2024 Tenstorrent Inc.
# SPDX-License-Identifier: GPL-2.0-only

set -e
Expand Down Expand Up @@ -32,7 +32,7 @@ if (( ($deploy_motor && $# > 0) || (!$deploy_motor && $# != 1) )); then
exit 1
fi

package_version=$(sed -nE "s/^[[:space:]]*PACKAGE_VERSION[[:space:]]*=[[:space:]]*\"([^\"]+)\"/\\1/p" dkms.conf)
package_version=$(tools/current-version)
archive=$(tools/make-source-release -m)
archive_basename=$(basename "$archive")

Expand Down

0 comments on commit f4d43b3

Please sign in to comment.