maybe let's try building manually #8
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "*" | |
- "*/*" | |
- "**" | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
build-windows-release: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
clean: true | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Generate build files | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release .. -G "Visual Studio 16 2019" | |
cmake --build . --config Release | |
- name: Create a folder for release | |
shell: bash | |
run: | | |
mkdir dist | |
cd dist | |
mkdir components | |
cd .. | |
mv ./build/src/Release/omp-node.dll ./dist/components/omp-node.dll | |
mv ./deps/node/lib/win/x64/Release/libnode.dll ./dist/libnode.dll | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: omp-node-win | |
path: dist/* | |
build-linux-release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
clean: true | |
submodules: recursive | |
fetch-depth: 0 | |
# - name: Build using docker | |
# run: | | |
# cd docker | |
# chmod +x ./build.sh | |
# chmod +x ./docker-entrypoint.sh | |
# ./build.sh | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
make -j4 | |
- name: Create a folder for release | |
shell: bash | |
run: | | |
mkdir dist | |
cd dist | |
mkdir components | |
cd .. | |
mv ./docker/build/src/omp-node.dll ./dist/components/omp-node.so | |
mv ./deps/node/lib/linux/x64/libnode.so.108 ./dist/libnode.so.108 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: omp-node-linux | |
path: dist/* |