Skip to content

Commit

Permalink
ci: debian disable
Browse files Browse the repository at this point in the history
  • Loading branch information
nanu-c committed Jun 16, 2023
1 parent c74a87e commit 4c25db8
Showing 1 changed file with 58 additions and 54 deletions.
112 changes: 58 additions & 54 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:


- name: Install dependencies
run: apt update && apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev libssl-dev libjavascriptcoregtk-4.1-dev cmake
run: sudo apt update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev libssl-dev libjavascriptcoregtk-4.1-dev cmake


- name: Check out code
Expand Down Expand Up @@ -117,59 +117,63 @@ jobs:
path: axolotl-web/dist/
retention-days: 1

build-axolotl-deb-arm64:
name: Build axolotl Debian arm64
runs-on: ubuntu-latest
container: debian
needs:
- build-axolotl-web-deb-arm64
env:
DEBIAN_FRONTEND: noninteractive
TZ: Europe/Berlin
PKG_CONFIG_SYSROOT_DIR: /
steps:
- name: Install Rust
run: rustup update stable

- name: Install tauri dependencies
run: apt update && apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev libssl-dev libjavascriptcoregtk-4.1-dev cmake
# build-axolotl-deb-arm64:
# name: Build axolotl Debian arm64
# runs-on: ubuntu-latest
# needs:
# - build-axolotl-web-deb-arm64
# env:
# DEBIAN_FRONTEND: noninteractive
# TZ: Europe/Berlin
# PKG_CONFIG_SYSROOT_DIR: /
# steps:
# - name: Install Rust
# run: rustup update stable

# - name: Install tauri dependencies
# run: sudo apt update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev libssl-dev libjavascriptcoregtk-4.1-dev cmake

- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: aarch64-unknown-linux-gnu

- name: Install tauri arm64 dependencies
run: |
dpkg --add-architecture arm64
apt update && apt-get install -y libgtk-3-dev:arm64 libwebkit2gtk-4.1-dev:arm64 librsvg2-dev:arm64 libayatana-appindicator3-dev:arm64 libssl-dev:arm64 libjavascriptcoregtk-4.1-dev:arm64
- name: Rust cache
uses: swatinem/rust-cache@v2

- name: Check out code
uses: actions/checkout@v3

- name: Download build-axolotl-web-deb-arm64 build artifacts
uses: actions/download-artifact@v3
id: download-axolotl-web
with:
name: build-axolotl-web-deb-arm64
path: build-artifacts

- name: Copy axolotl-web build artifacts
run: |
echo $PWD
mkdir --parents axolotl-web/dist
cp -rf ${{steps.download-axolotl-web.outputs.download-path}}/* axolotl-web/dist
- name: Build
run: RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --release --target aarch64-unknown-linux-gnu --features tauri

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: linux-arm64
path: build/linux-arm64/axolotl
retention-days: 1
# - name: Install cross-compilation tools
# uses: taiki-e/setup-cross-toolchain-action@v1
# with:
# target: aarch64-unknown-linux-gnu

# - name: Install tauri arm64 dependencies
# run: |
# echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy main multiverse universe" | sudo tee -a /etc/apt/sources.list
# echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-security main multiverse universe" | sudo tee -a /etc/apt/sources.list
# echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-backports main multiverse universe" | sudo tee -a /etc/apt/sources.list
# echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-updates main multiverse universe" | sudo tee -a /etc/apt/sources.list

# sudo dpkg --add-architecture arm64
# sudo apt update && sudo apt-get install -y libgtk-3-dev:arm64 libwebkit2gtk-4.1-dev:arm64 librsvg2-dev:arm64 libayatana-appindicator3-dev:arm64 libssl-dev:arm64 libjavascriptcoregtk-4.1-dev:arm64

# - name: Rust cache
# uses: swatinem/rust-cache@v2

# - name: Check out code
# uses: actions/checkout@v3

# - name: Download build-axolotl-web-deb-arm64 build artifacts
# uses: actions/download-artifact@v3
# id: download-axolotl-web
# with:
# name: build-axolotl-web-deb-arm64
# path: build-artifacts

# - name: Copy axolotl-web build artifacts
# run: |
# echo $PWD
# mkdir --parents axolotl-web/dist
# cp -rf ${{steps.download-axolotl-web.outputs.download-path}}/* axolotl-web/dist
# - name: Build
# run: RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --release --target aarch64-unknown-linux-gnu --features tauri

# - name: Upload build artifacts
# uses: actions/upload-artifact@v3
# with:
# name: linux-arm64
# path: build/linux-arm64/axolotl
# retention-days: 1


0 comments on commit 4c25db8

Please sign in to comment.