fix: incorrect clog_gmtime_s() #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Emscripten | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Emscripten SDK | |
uses: mymindstorm/setup-emsdk@v11 | |
- name: Check Emscripten version | |
run: emcc -v | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: make clang-14 the default | |
run: | |
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-14 | |
100 | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v1.14 | |
with: | |
cmake-version: '3.26.x' | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: deps fetch dependencies | |
run: go run github.com/piot/deps/src/deps@main fetch -t src/deps | |
- name: create cmake cache using emscripten (emcmake) | |
run: emcmake cmake -DCMAKE_BUILD_TYPE=Debug . | |
working-directory: src | |
- name: build | |
run: cmake --build . --clean-first | |
working-directory: src | |
- uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: Clog Emscripten Library | |
path: | | |
src/lib/libclog.a |