-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked CI/CD pipeline, added mask_storeu for sse and avx without AV…
…X512VL (#91) * Update Dockerfile * Create target_flags_translate.py * Update entrypoint.sh * Update target_flags_translate.py * Update release-tsl.yml * Update README.md * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update target_flags_translate.py * Update publish-latest.yml * Update Dockerfile * Update tsl.spec * Update entrypoint.sh * added mask_storeu for avx and sse * changed ubuntu:latest to ubuntu:23.04
- Loading branch information
1 parent
8588f92
commit b2dfa63
Showing
14 changed files
with
154 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
FROM amd64/ubuntu:latest | ||
FROM amd64/ubuntu:23.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install software-properties-common \ | ||
python3 python3-pip python3-venv \ | ||
python3-full python3-pip python3-venv \ | ||
git wget | ||
|
||
RUN ls | ||
RUN pwd | ||
|
||
COPY requirements.txt /requirements.txt | ||
|
||
RUN pip install -r /requirements.txt | ||
RUN pip3 install --ignore-installed -r /requirements.txt --break-system-packages | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/db-tu-dresden/TSL | ||
LABEL org.opencontainers.image.description="TSLerator Generation Image" | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
COPY target_flags_translate.py /target_flags_translate.py | ||
|
||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
|
||
def get_variants(arr): | ||
if len(arr) == 1: | ||
for x in arr[0]: | ||
yield [x] | ||
else: | ||
for x in arr[0]: | ||
for y in get_variants(arr[1:]): | ||
yield [x] + y | ||
|
||
def flatten_alternatives(arr): | ||
for entry in arr: | ||
for x in entry.split("|"): | ||
yield x | ||
|
||
targets_str = sys.argv[1] | ||
targets_arr = [x.strip() for x in targets_str.split(",")] | ||
|
||
direct_targets = list(filter(lambda x: "|" not in x, targets_arr)) | ||
alternatives_targets = list(filter(lambda x: "|" in x, targets_arr)) | ||
|
||
targets_all = direct_targets + [x for x in flatten_alternatives(alternatives_targets)] | ||
targets_name = "-".join(targets_all) | ||
|
||
if len(alternatives_targets) > 0: | ||
alternatives = [x for x in get_variants([alt.split("|") for alt in alternatives_targets])] | ||
else: | ||
alternatives = [] | ||
|
||
if len(sys.argv) == 3: | ||
print(targets_name) | ||
else: | ||
if len(alternatives) > 0: | ||
for alternative in alternatives: | ||
print(f"flags: {':'.join(direct_targets + alternative)}") | ||
print(f"path: {targets_name}") | ||
else: | ||
print(f"flags: {':'.join(direct_targets)}") | ||
print(f"path: {targets_name}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM arm64v8/ubuntu:latest | ||
FROM arm64v8/ubuntu:23.04 | ||
|
||
RUN apt update | ||
RUN apt-get -y install \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM amd64/ubuntu:latest | ||
FROM amd64/ubuntu:23.04 | ||
|
||
RUN apt update | ||
RUN apt-get -y install \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ jobs: | |
LATEST_TAG=$(git tag -l --sort=-v:refname "v*" | head -n 1) | ||
if [ -z "${LATEST_TAG}" ]; then | ||
echo "No tag: $LATEST_TAG" | ||
LATEST_TAG=v0.0.0 | ||
LATEST_TAG=v0.0.0-rc1 | ||
else | ||
echo "Latest tag: $LATEST_TAG" | ||
fi | ||
|
@@ -63,10 +63,21 @@ jobs: | |
echo "temp=${TEMP}" | ||
MINOR=${TEMP%%.*} | ||
echo "minor=${MINOR}" | ||
PATCH=${TEMP#*.} | ||
PATCHTEMP=${TEMP#*.} | ||
echo "patchtemp=$PATCHTEMP" | ||
PATCH=${PATCHTEMP%%-*} | ||
echo "patch=${PATCH}" | ||
PATCH=$((PATCH+1)) | ||
VERSION="v$MAJOR.$MINOR.$PATCH" | ||
RC_TMP=${PATCHTEMP#*-} | ||
RC=${RC_TMP:2} | ||
if [ -z "${RC}" ]; then | ||
PATCH=$((PATCH+1)) | ||
RC=1 | ||
else | ||
RC=$((RC+1)) | ||
fi | ||
echo "rc=${RC}" | ||
VERSION="v${MAJOR}.${MINOR}.${PATCH}-rc${RC}" | ||
echo "New Version: ${VERSION}" | ||
echo "tag=${VERSION}" | ||
echo "tag=${VERSION}" >> $GITHUB_OUTPUT | ||
git config --global user.email "[email protected]" | ||
|
@@ -108,4 +119,4 @@ jobs: | |
tag-name: ${{ needs.get-tag.outputs.tag }} | ||
secrets: | ||
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.