Skip to content

Commit

Permalink
ci: fix a-web path
Browse files Browse the repository at this point in the history
  • Loading branch information
nanu-c committed Jun 14, 2023
1 parent d1dcf91 commit 847ffcd
Showing 1 changed file with 66 additions and 63 deletions.
129 changes: 66 additions & 63 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:

- name: Copy axolotl-web build artifacts
run: |
find $GITHUB_WORKSPACE/build-artifacts
mkdir --parents $GITHUB_WORKSPACE/axolotl-web/dist
cp --recursive $GITHUB_WORKSPACE/build-artifacts/axolotl-web/dist $GITHUB_WORKSPACE/axolotl-web/dist
cp --recursive $GITHUB_WORKSPACE/build-artifacts/guis $GITHUB_WORKSPACE/guis
cp -rf build-artifacts/axolotl-web/* $GITHUB_WORKSPACE/axolotl-web/dist
- name: Build
run: make build-axolotl
Expand All @@ -82,64 +82,67 @@ 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
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

# 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

0 comments on commit 847ffcd

Please sign in to comment.