Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Build-release CI pipeline refactoring with Windows support #28

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
30 changes: 30 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linux Build
on: push
jobs:
linux-build:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: |
node --version
yarn --version
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build
run: ./build-linux.sh
- uses: actions/upload-artifact@v2
with:
name: linux-build
path: out/linux
30 changes: 30 additions & 0 deletions .github/workflows/build-osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: OS X Build
on: push
jobs:
osx-build:
needs: release
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: |
node --version
yarn --version
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build
run: ./build-osx.sh
- uses: actions/upload-artifact@v2
with:
name: osx-build
path: out/mac
96 changes: 0 additions & 96 deletions .github/workflows/build-release.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Windows Build
on: push
jobs:
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '14'
architecture: 'x64'
- run: |
node --version
yarn --version
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: |
yarn install
cd ccurl
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
cl libccurl.cpp /LD /Ox
if not exist "win64" mkdir win64
copy libccurl.dll win64\
del libccurl.dll
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
cl libccurl.cpp /LD /Ox
if not exist "win32" mkdir win32
copy libccurl.dll win32\
del libccurl.dll
cd ..
- run: |
yarn compile:win
tree /f out
- uses: actions/upload-artifact@v2
with:
name: windows-build
path: out/win
15 changes: 8 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
node_modules
app/bower_components
ui/bower_components
npm-debug.log
ari/*
out/*
/app/bower_components
/ari
/node_modules
/out
/ui/bower_components
/*.pfx
.project
aidos
/.project
npm-debug.log
yarn-error.log
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
<br>
</h1>

<h5 align="center">This repository contains the desktop wallet for Aidos Kuneen.</h6>
<h5 align="center">This repository contains the desktop wallet for Aidos Kuneen</h6>

<p align="center">
<a href="https://travis-ci.org/AidosKuneen/aidos-wallet">
<img src="https://api.travis-ci.org/AidosKuneen/aidos-wallet.svg?branch=master"
alt="Travis">
</a>
<a href="https://ci.appveyor.com/project/MYehia565/aidos-wallet"><img src="https://ci.appveyor.com/api/projects/status/rnxy5ns9muenbbp5?svg=true" alt="Appveyor"></a>
<a href="https://raw.githubusercontent.com/AidosKuneen/aidos-wallet/master/LICENSE">
<img src="https://img.shields.io/badge/license-GPLv3-blue.svg" alt="License">
</a>
Expand Down
16 changes: 16 additions & 0 deletions build-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -e
set -x

yarn install
pushd ccurl || exit
rm mac/libccurl.dylib || true
rm lin64/libccurl.so || true
gcc -shared -o libccurl.so libccurl.cpp -O3 -lpthread -fPIC -std=c++11
mkdir -p lin64
cp libccurl.so lin64/
rm libccurl.so
popd || exit
yarn run compile:lin
find out
16 changes: 16 additions & 0 deletions build-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -e
set -x

yarn install
pushd ccurl || exit
rm mac/libccurl.dylib || true
rm lin64/libccurl.so || true
gcc -dynamiclib -o libccurl.dylib libccurl.cpp -O3 -lpthread -std=c++11
mkdir -p mac
cp libccurl.dylib mac/
rm libccurl.dylib
popd || exit
yarn run compile:mac
find out