Skip to content

Commit

Permalink
Bump 1.9.5 [release 1.9.5]
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed May 18, 2024
1 parent aaa6c3f commit 0fd2c08
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 18 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,67 @@ jobs:
win64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build
shell: pwsh
run: |
cmake -B build
cmake --build build --config Release --target glslcc
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ./build/src/Release/glslcc.exe
name: glslcc-win64
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build
shell: pwsh
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --target glslcc
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ./build/src/glslcc
name: glslcc-linux
osx:
osx-arm64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3'
- name: build
shell: pwsh
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
cmake --build build --config Release --target glslcc
lipo -info ./build/src/glslcc
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ./build/src/glslcc
name: glslcc-osx-arm64

osx-x64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2'
- name: build
shell: pwsh
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake -B build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
cmake --build build --config Release --target glslcc
lipo -info ./build/src/glslcc
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ./build/src/glslcc
name: glslcc-osx
name: glslcc-osx-x64
20 changes: 13 additions & 7 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check release version
id: check_ver
Expand Down Expand Up @@ -55,20 +55,26 @@ jobs:
- name: Create packages
if: ${{ steps.check_ver.outputs.release_ver != '' }}
run: |
curl -L https://github.com/simdsoft/1kiss/releases/download/devtools/d3dcompiler_47.dll -o ./glslcc-win64/d3dcompiler_47.dll
ls -l ./glslcc-win64
mkdir -p pkg_dir
prefix=glslcc-${{ steps.check_ver.outputs.release_ver }}
ls -l glslcc-linux
ls -l glslcc-osx
ls -l glslcc-osx-x64
ls -l glslcc-osx-arm64
sudo chmod u+x ./glslcc-linux/glslcc
sudo chmod u+x ./glslcc-osx/glslcc
sudo chmod u+x ./glslcc-osx-x64/glslcc
sudo chmod u+x ./glslcc-osx-arm64/glslcc
ls -l glslcc-linux
ls -l glslcc-osx
ls -l glslcc-osx-x64
ls -l glslcc-osx-arm64
tar -czvf ./pkg_dir/$prefix-linux.tar.gz -C ./glslcc-linux glslcc
tar -czvf ./pkg_dir/$prefix-osx.tar.gz -C ./glslcc-osx glslcc
sh -c "cd ./glslcc-win64; zip ../pkg_dir/$prefix-win64.zip glslcc.exe"
tar -czvf ./pkg_dir/$prefix-osx-x64.tar.gz -C ./glslcc-osx-x64 glslcc
tar -czvf ./pkg_dir/$prefix-osx-arm64.tar.gz -C ./glslcc-osx-arm64 glslcc
sh -c "cd ./glslcc-win64; zip ../pkg_dir/$prefix-win64.zip glslcc.exe d3dcompiler_47.dll"
- name: Publish to github release page
if: ${{ steps.check_ver.outputs.release_ver != '' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.check_ver.outputs.release_tag }}
name: ${{ steps.check_ver.outputs.release_tag }}
Expand Down
6 changes: 4 additions & 2 deletions src/glslcc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@
// 1.9.2 Revert `Vertex shader: emit precision qualifiers for essl profile`
// 1.9.3 Expand uniform block members for GLSL/ESSL100
// 1.9.4 Fix MSL texture order does not follow GLSL binding order
// 1.9.5 Build for macos-arm64
// Build for macos-10.15
//

/**
* Latest Release: 1.9.4
* Latest Release: 1.9.5
*
* - Fix MSL texture order does not follow GLSL binding order
* - https://github.com/KhronosGroup/SPIRV-Cross/issues/2140
Expand Down Expand Up @@ -106,7 +108,7 @@

#define VERSION_MAJOR 1
#define VERSION_MINOR 9
#define VERSION_SUB 4
#define VERSION_SUB 5

static const sx_alloc* g_alloc = sx_alloc_malloc();
static sgs_file* g_sgs = nullptr;
Expand Down

0 comments on commit 0fd2c08

Please sign in to comment.