Skip to content

Commit

Permalink
Merge pull request shader-slang#26 from kaizhangNV/master
Browse files Browse the repository at this point in the history
Switch from ubuntu-18 to CentOS-7 build
  • Loading branch information
kaizhangNV authored Jun 27, 2024
2 parents 9ac69c5 + 905360e commit f45b629
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/dockerfiles/ubuntu-18.04-x64/Dockerfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI Release Linux
name: CI Release Linux-CentOS-7

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:
name: Upload Asset - Linux
Expand All @@ -24,17 +24,14 @@ jobs:
# Build from the tag that triggered the build
ref: ${{github.ref_name}}

# build a docker image based on ubuntu 18.04
- name: build docker image
run: docker build -t ubuntu-18.04-gcc-9 ./.github/workflows/dockerfiles/ubuntu-18.04-x64

# build the binary in docker image
# build the binary in docker image
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: ubuntu-18.04-gcc-9
options: -v ${{ github.workspace }}:/home/app
image: slangdeveloper/centos7-gcc9
options: -v ${{ github.workspace }}:/home/app -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt
run: |
source /opt/rh/devtoolset-9/enable
cd /home/app
git config --global --add safe.directory /home/app
PREMAKE=external/slang-binaries/premake/premake-5.0.0-alpha16/bin/linux-64/premake5
Expand All @@ -55,7 +52,7 @@ jobs:
echo "tag:$TAG_NAME"
echo "glslang-version:$GLSLANG_VERSION"
BIN_ARCHIVE="slang-glslang-$GLSLANG_VERSION-linux-${{matrix.platform}}-${{matrix.configuration}}-glibc-2.27.zip"
BIN_ARCHIVE="slang-glslang-$GLSLANG_VERSION-linux-${{matrix.platform}}-${{matrix.configuration}}-glibc-2.17.zip"
zip "$BIN_ARCHIVE" README.md
zip "$BIN_ARCHIVE" LICENSE
Expand Down

0 comments on commit f45b629

Please sign in to comment.