Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:KomodoPlatform/atomicDEX-API into cl…
Browse files Browse the repository at this point in the history
…ean-project-root
  • Loading branch information
onur-ozkan committed Mar 27, 2023
2 parents 1f8de4c + 514884c commit 9163500
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 26 deletions.
61 changes: 53 additions & 8 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Development builds
on:
push:
branches:
- dev
pull_request:
branches:
- dev
branches-ignore:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -42,13 +39,19 @@ jobs:
cargo build --bin mm2 --profile ci
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="mm2_$COMMIT_HASH-linux-x86-64.zip"
zip $NAME target/ci/mm2 -j
mkdir $BRANCH_NAME
mv $NAME ./$BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand All @@ -59,11 +62,11 @@ jobs:
remote: "/uploads/${{ env.BRANCH_NAME }}"

- name: Login to dockerhub
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev'
run: docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} docker.io

- name: Build and push container image
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev'
run: |
CONTAINER_TAG="dev-$COMMIT_HASH"
docker build -t komodoofficial/atomicdexapi:"$CONTAINER_TAG" -t komodoofficial/atomicdexapi:dev-latest -f .docker/Dockerfile.dev-release .
Expand Down Expand Up @@ -95,13 +98,19 @@ jobs:
cargo build --bin mm2 --profile ci --target x86_64-apple-darwin
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="mm2_$COMMIT_HASH-mac-x86-64.zip"
zip $NAME target/x86_64-apple-darwin/ci/mm2 -j
mkdir $BRANCH_NAME
mv $NAME ./$BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand Down Expand Up @@ -138,13 +147,19 @@ jobs:
cargo build --bin mm2 --profile ci
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
$NAME="mm2_$Env:COMMIT_HASH-win-x86-64.zip"
7z a $NAME .\target\ci\mm2.exe .\target\ci\*.dll
mkdir $Env:BRANCH_NAME
mv $NAME ./$Env:BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand Down Expand Up @@ -179,6 +194,9 @@ jobs:
cargo rustc --target x86_64-apple-darwin --lib --profile ci --package mm2_bin_lib --crate-type=staticlib
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="mm2_$COMMIT_HASH-mac-dylib-x86-64.zip"
mv target/x86_64-apple-darwin/ci/libmm2lib.a target/x86_64-apple-darwin/ci/libmm2.a
Expand All @@ -187,6 +205,9 @@ jobs:
mv $NAME ./$BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand Down Expand Up @@ -225,13 +246,19 @@ jobs:
wasm-pack build mm2src/mm2_bin_lib --target web --out-dir ../../target/target-wasm-release
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="mm2_$COMMIT_HASH-wasm.zip"
zip $NAME ./target/target-wasm-release/mm2lib_bg.wasm ./target/target-wasm-release/mm2lib.js ./target/target-wasm-release/snippets -j
mkdir $BRANCH_NAME
mv $NAME ./$BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand Down Expand Up @@ -267,6 +294,9 @@ jobs:
cargo rustc --target aarch64-apple-ios --lib --profile ci --package mm2_bin_lib --crate-type=staticlib
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="mm2_$COMMIT_HASH-ios-aarch64.zip"
mv target/aarch64-apple-ios/ci/libmm2lib.a target/aarch64-apple-ios/ci/libmm2.a
Expand All @@ -275,6 +305,9 @@ jobs:
mv $NAME ./$BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand Down Expand Up @@ -315,6 +348,9 @@ jobs:
CC_aarch64_linux_android=aarch64-linux-android21-clang CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang cargo rustc --target=aarch64-linux-android --lib --profile ci --crate-type=staticlib --package mm2_bin_lib
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="mm2_$COMMIT_HASH-android-aarch64.zip"
mv target/aarch64-linux-android/ci/libmm2lib.a target/aarch64-linux-android/ci/libmm2.a
Expand All @@ -323,6 +359,9 @@ jobs:
mv $NAME ./$BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand Down Expand Up @@ -363,6 +402,9 @@ jobs:
CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --target=armv7-linux-androideabi --lib --profile ci --crate-type=staticlib --package mm2_bin_lib
- name: Compress build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="mm2_$COMMIT_HASH-android-armv7.zip"
mv target/armv7-linux-androideabi/ci/libmm2lib.a target/armv7-linux-androideabi/ci/libmm2.a
Expand All @@ -371,6 +413,9 @@ jobs:
mv $NAME ./$BRANCH_NAME/
- name: Upload output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
uses: garygrossgarten/github-action-scp@release
with:
host: ${{ secrets.FILE_SERVER_HOST }}
Expand All @@ -382,7 +427,7 @@ jobs:


deployment-commitment:
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev'
needs: linux-x86-64
timeout-minutes: 15
runs-on: ubuntu-18.04
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/fmt-and-lint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
name: Format and Lint
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
name: Test
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**Features:**

**Enhancements/Fixes:**
- CI/CD workflow logics are improved [#1736](https://github.com/KomodoPlatform/atomicDEX-API/pull/1736)
- Project root is simplified/refactored [#1738](https://github.com/KomodoPlatform/atomicDEX-API/pull/1738)

## v1.0.1-beta - 2023-03-17
Expand Down

0 comments on commit 9163500

Please sign in to comment.