Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ on:
- minor
- patch

env:
SCCACHE_GHA_ENABLED: "true"

permissions:
contents: write # push merge commit, push tags, create GitHub Release

concurrency:
group: mie-occ-wasm-release-${{ github.ref }}
cancel-in-progress: false

env:
EM_VERSION: "4.0.15"
EM_CACHE: "${{ github.workspace }}/.emscripten_cache"

jobs:
release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,16 +76,21 @@ jobs:
echo "tag=${TAG}" >> "${GITHUB_OUTPUT}"
echo "bump_sha=$(git rev-parse HEAD)" >> "${GITHUB_OUTPUT}"

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9

- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y ninja-build

- name: Setup emsdk + occt
run: npm run setup

- name: Restore Emscripten cache
uses: actions/cache@v5
with:
path: ${{ env.EM_CACHE }}
key: emcache-${{ env.EM_VERSION }}-${{ runner.os }}-${{ runner.arch }}
restore-keys: |
emcache-${{ env.EM_VERSION }}-${{ runner.os }}-

- name: Build
run: npm run build
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ source_group("OCCT" FILES ${MIE_OCCT_SOURCE_FILES})
if(EMSCRIPTEN)
set(MIE_SHARED_COMPILE_FLAGS)
list(APPEND MIE_SHARED_COMPILE_FLAGS
--cache sccache
-O3
-flto
)
Expand Down
Loading