Skip to content

Commit

Permalink
ci: enable debian build
Browse files Browse the repository at this point in the history
  • Loading branch information
nanu-c committed Jun 15, 2023
1 parent d5f71d0 commit 5cd7521
Showing 1 changed file with 65 additions and 64 deletions.
129 changes: 65 additions & 64 deletions .github/workflows/build.yaml
Expand Up @@ -88,67 +88,68 @@ jobs:
path: axolotl
retention-days: 1

# build-axolotl-deb-arm64:
# name: Build axolotl Debian arm64
# runs-on: ubuntu-latest

# steps:
# - name: Install Rust
# run: rustup update stable
# - name: Install cross-compilation tools
# uses: taiki-e/setup-cross-toolchain-action@v1
# with:
# target: aarch64-unknown-linux-gnu

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

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

# - name: Build
# run: 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

# build-axolotl-web-deb-arm64:
# name: Build axolotl-web Debian arm64
# runs-on: ubuntu-latest

# steps:
# - name: Set up Node - name: Download axolotl and axolotl-web build artifacts
# uses: actions/download-artifact@v3
# with:
# path: build-artifacts
# uses: actions/setup-node@v3
# with:
# node-version: ${{ env.NODE_VERSION }}

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

# - name: Create folder
# run: mkdir --parents $GITHUB_WORKSPACE/build/linux-arm64/axolotl-web

# - name: Download dependencies
# run: npm --prefix ./axolotl-web --target_arch=arm64 ci --loglevel verbose

# - name: Build
# run: npm --prefix ./axolotl-web --target_arch=arm64 run build

# - name: Copy build files
# run: |
# cp --recursive $GITHUB_WORKSPACE/axolotl-web/dist $GITHUB_WORKSPACE/build/linux-arm64/axolotl-web/
# cp --recursive $GITHUB_WORKSPACE/guis $GITHUB_WORKSPACE/build/linux-arm64/

# - name: Upload build artifacts
# uses: actions/upload-artifact@v3
# with:
# name: linux-arm64
# path: build/linux-arm64/
# retention-days: 1
build-axolotl-web-deb-arm64:
name: Build axolotl-web Debian arm64
runs-on: ubuntu-latest

steps:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

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

- name: Create folder
run: mkdir --parents $GITHUB_WORKSPACE/build/linux-arm64/axolotl-web

- name: Download dependencies
run: npm --prefix ./axolotl-web --target_arch=arm64 ci --loglevel verbose

- name: Build
run: npm --prefix ./axolotl-web --target_arch=arm64 run build

- name: Copy build files
run: |
cp --recursive $GITHUB_WORKSPACE/axolotl-web/dist $GITHUB_WORKSPACE/build/linux-arm64/axolotl-web/
cp --recursive $GITHUB_WORKSPACE/guis $GITHUB_WORKSPACE/build/linux-arm64/
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: linux-arm64
path: build/linux-arm64/
retention-days: 1

build-axolotl-deb-arm64:
name: Build axolotl Debian arm64
runs-on: ubuntu-latest
needs:
- build-axolotl-web-deb-arm64

steps:
- name: Install Rust
run: rustup update stable
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: aarch64-unknown-linux-gnu

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

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

- name: Build
run: 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 5cd7521

Please sign in to comment.