Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSmith33 committed May 26, 2024
1 parent 3c9e06b commit 77dec8c
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
name: Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-12, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC }}
Expand All @@ -35,19 +35,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-12, windows-latest]
include:
- os: ubuntu-latest
EXE: vox
PLATFORM: linux-x64
- os: macos-latest
- os: macos-12
EXE: vox
PLATFORM: macos-x64
- os: windows-latest
EXE: vox.exe
PLATFORM: windows-x64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC }}
Expand All @@ -61,28 +61,28 @@ jobs:
ldc2 -m64 -O3 -mcpu=x86-64-v3 -release -boundscheck=off -enable-inlining -flto=full -linkonce-templates --defaultlib=phobos2-ldc-lto,druntime-ldc-lto -d-version=cli -fprofile-instr-use=vox.profdata -of=../bin/${{matrix.EXE}} -i main.d
cd ../bin
7z a -mx9 vox-${{matrix.PLATFORM}}.zip ${{matrix.EXE}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./bin/vox-${{matrix.PLATFORM}}.zip
build-debug:
name: Build CLI debug
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-12, windows-latest]
include:
- os: ubuntu-latest
EXE: vox
PLATFORM: linux-x64
- os: macos-latest
- os: macos-12
EXE: vox
PLATFORM: macos-x64
- os: windows-latest
EXE: vox.exe
DBG_FILE: vox.pdb
PLATFORM: windows-x64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC }}
Expand All @@ -96,28 +96,28 @@ jobs:
ldc2 -m64 -O3 -mcpu=x86-64-v3 --d-debug -g -boundscheck=off -enable-inlining -flto=full -linkonce-templates --defaultlib=phobos2-ldc-lto,druntime-ldc-lto -d-version=cli -fprofile-instr-use=vox.profdata -of=../bin/${{matrix.EXE}} -i main.d
cd ../bin
7z a -mx9 vox-${{matrix.PLATFORM}}-dbg.zip ${{matrix.EXE}} ${{matrix.DBG_FILE}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./bin/vox-${{matrix.PLATFORM}}-dbg.zip
build-shared:
name: Build shared
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-12, windows-latest]
include:
- os: ubuntu-latest
DLL: libvox.so
PLATFORM: linux-x64
- os: macos-latest
- os: macos-12
DLL: libvox.dylib
PLATFORM: macos-x64
- os: windows-latest
DLL: libvox.dll
LIB: libvox.lib
PLATFORM: windows-x64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC }}
Expand All @@ -128,20 +128,20 @@ jobs:
ldc2 -m64 -shared -O3 -mcpu=x86-64-v3 -release -boundscheck=off -enable-inlining -flto=full -linkonce-templates --defaultlib=phobos2-ldc-lto,druntime-ldc-lto -fvisibility=hidden -link-defaultlib-shared=false -i c_api.d -of=../bin/${{matrix.DLL}}
cd ../bin
7z a -mx9 libvox-${{matrix.PLATFORM}}.zip ${{matrix.DLL}} ${{matrix.LIB}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./bin/libvox-${{matrix.PLATFORM}}.zip
build-shared-debug:
name: Build shared debug
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-12, windows-latest]
include:
- os: ubuntu-latest
DLL: libvox.so
PLATFORM: linux-x64
- os: macos-latest
- os: macos-12
DLL: libvox.dylib
PLATFORM: macos-x64
- os: windows-latest
Expand All @@ -150,7 +150,7 @@ jobs:
DBG_FILE: libvox.pdb
PLATFORM: windows-x64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC }}
Expand All @@ -161,7 +161,7 @@ jobs:
ldc2 -m64 -shared -O3 -mcpu=x86-64-v3 --d-debug -g -boundscheck=off -enable-inlining -flto=full -linkonce-templates --defaultlib=phobos2-ldc-lto,druntime-ldc-lto -fvisibility=hidden -link-defaultlib-shared=false -i c_api.d -of=../bin/${{matrix.DLL}}
cd ../bin
7z a -mx9 libvox-${{matrix.PLATFORM}}-dbg.zip ${{matrix.DLL}} ${{matrix.LIB}} ${{matrix.DBG_FILE}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./bin/libvox-${{matrix.PLATFORM}}-dbg.zip
upload:
Expand All @@ -171,11 +171,12 @@ jobs:
needs: [test, build, build-debug, build-shared, build-shared-debug]
steps:
# Cloning is needed for `gh release create` to work. It looks repository up in .git folder
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Download build artifacts of other jobs
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
name: artifact-*
merge-multiple: true
path: bin/
# Update tag, so that we get proper date and commit on github
- name: Update CI tag
Expand Down

0 comments on commit 77dec8c

Please sign in to comment.