Skip to content

Commit

Permalink
Attempt to optimize the built artifacts using a specific build type.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuniss committed Jan 7, 2024
1 parent 49328b8 commit d0a6701
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
lcd_compiler_version:
type: string
required: true
build_type:
type: string
required: false
default: "debug"

jobs:
build:
Expand Down Expand Up @@ -39,7 +43,7 @@ jobs:

- name: Run build
run: |
dub build
dub build --build={{inputs.build_type}}
- name: Upload executables
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: ./.github/workflows/build.yml
with:
lcd_compiler_version: ldc-1.33.0
build_type: release-gamma
needs: verify

upload:
Expand Down
5 changes: 5 additions & 0 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"importPaths": ["include", "src"],
"mainSourceFile": "src/gamma/main.d",
"stringImportPaths": ["fix/epsilon"],
"buildTypes": {
"release-gamma": {
"buildOptions": ["debugMode", "optimize", "inline", "debugInfo"]
}
},
"configurations": [
{
"name": "gamma",
Expand Down

0 comments on commit d0a6701

Please sign in to comment.