Skip to content

Commit

Permalink
Switch from ubuntu-18 to CentOS-7 build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Jun 27, 2024
1 parent 9ac69c5 commit 0b78e1f
Showing 1 changed file with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
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
#
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Upload Asset - Linux
Expand All @@ -24,17 +29,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
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 Down Expand Up @@ -63,10 +65,10 @@ jobs:
echo "BINARY_ARCHIVE=${BIN_ARCHIVE}" >> $GITHUB_OUTPUT
- name: Upload Archive
uses: softprops/action-gh-release@v1
with:
files: |
${{ steps.archive.outputs.BINARY_ARCHIVE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Upload Archive
# uses: softprops/action-gh-release@v1
# with:
# files: |
# ${{ steps.archive.outputs.BINARY_ARCHIVE }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0b78e1f

Please sign in to comment.