Skip to content

Commit

Permalink
mod workflow for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvforvendetta committed Aug 18, 2024
1 parent 2dbb753 commit 29db263
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 436 deletions.
188 changes: 0 additions & 188 deletions .github/workflows/build-all-and-release.yml

This file was deleted.

123 changes: 6 additions & 117 deletions .github/workflows/check-commit.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,9 @@
on:
push
jobs:
macos:
runs-on: macos-12

steps:
- uses: actions/checkout@v4

- name: git config credential.helper
run: git config credential.helper

- name: Brew install base dependencies
run: brew install automake berkeley-db@4 [email protected] miniupnpc qt@5 gperf qrencode librsvg && curl -L https://raw.githubusercontent.com/vergecurrency/protobuf261/master/protobuf261.rb > protobuf261.rb && brew install protobuf261.rb

- name: Brew link dependencies
run: brew link [email protected] qt@5 berkeley-db@4

- name: Auto generate
run: ./autogen.sh

- name: configure
run: ./configure --disable-bench --disable-tests --disable-dependency-tracking --disable-werror --with-gui --bindir=`pwd`/release/bin --libdir=`pwd`/release/lib

- name: make
run: make -j4

- name: make check
run: make check -j4

- name: make .dmg
run: make deploy

- uses: actions/upload-artifact@v4
with:
name: verge-macos.zip
path: |
*.dmg

linux:
runs-on: ubuntu-latest
runs-on: [linux, ARM64]

steps:
- uses: actions/checkout@v4
Expand All @@ -50,13 +15,13 @@ jobs:
run: sudo apt-get install build-essential xutils-dev libtool gperf autotools-dev automake pkg-config bsdmainutils libattr1-dev make automake bison byacc cmake curl g++-multilib binutils-gold bison byacc python3

- name: Build depends
run: cd depends/ && make -j4 HOST=x86_64-linux-gnu
run: cd depends/ && make -j4 HOST=aarch64-linux-gnu

- name: Auto generate
run: ./autogen.sh

- name: configure
run: ./configure --disable-bench --disable-tests --disable-dependency-tracking --disable-werror --prefix=`pwd`/depends/x86_64-linux-gnu --bindir=`pwd`/release/bin --libdir=`pwd`/release/lib
run: CONFIG_SITE=$PWD/depends/aarch64-linux-gnu/share/config.site ./configure --build=aarch64-linux-gnu --disable-bench --disable-tests --disable-dependency-tracking --disable-werror --prefix=`pwd`/depends/x86_64-linux-gnu --bindir=`pwd`/release/bin --libdir=`pwd`/release/lib

- name: make
run: make -j4
Expand All @@ -66,85 +31,9 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: verge-ubuntu22.zip
path: |
./src/verged
./src/verge-cli
./src/verge-tx
./src/qt/verge-qt
linux2:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4

- name: Update apt repos
run: sudo apt-get update

- name: Install base dependencies
run: sudo apt-get install build-essential xutils-dev libtool gperf autotools-dev automake pkg-config bsdmainutils libattr1-dev make automake bison byacc cmake curl g++-multilib binutils-gold bison byacc python3

- name: Build depends
run: cd depends/ && make -j4 HOST=x86_64-linux-gnu

- name: Auto generate
run: ./autogen.sh

- name: configure
run: ./configure --disable-bench --disable-tests --disable-dependency-tracking --disable-werror --prefix=`pwd`/depends/x86_64-linux-gnu --bindir=`pwd`/release/bin --libdir=`pwd`/release/lib

- name: make
run: make -j4

- name: make check
run: make check -j4

- uses: actions/upload-artifact@v4
with:
name: verge-ubuntu20.zip
name: verge-aarch64.zip
path: |
./src/verged
./src/verge-cli
./src/verge-tx
./src/qt/verge-qt
windows:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Update apt repos
run: sudo apt-get update

- name: Install base dependencies
run: sudo apt-get install build-essential libtool gperf autotools-dev automake pkg-config bsdmainutils curl git bison byacc python3 nsis

- name: Force Posix
run: sudo apt-get install g++-mingw-w64-i686 mingw-w64-i686-dev && sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix

- name: Build depends for MingW32 Cross Compile
run: PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') && cd depends/ && make HOST=i686-w64-mingw32 -j2

- name: Auto generate
run: ./autogen.sh

- name: configure
run: CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure --prefix=/ --disable-bench --disable-tests

- name: make
run: make -j2

- name: strip
run: cd ./src && strip verged.exe verge-cli.exe verge-tx.exe && cd ./qt && strip verge-qt.exe

- uses: actions/upload-artifact@v4
with:
name: verge-windows.zip
path: |
/home/runner/work/verge/verge/src/verged.exe
/home/runner/work/verge/verge/src/verge-cli.exe
/home/runner/work/verge/verge/src/verge-tx.exe
/home/runner/work/verge/verge/src/qt/verge-qt.exe
./src/qt/verge-qt
21 changes: 0 additions & 21 deletions .github/workflows/greetings.yml

This file was deleted.

Loading

0 comments on commit 29db263

Please sign in to comment.