From bed126e6419121df8fef969751df9adf7e7a064b Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 28 Sep 2025 02:48:00 +0000 Subject: [PATCH] ci(packages): fix builds Signed-off-by: Xe Iaso --- .github/workflows/package-builds-stable.yml | 5 + .github/workflows/package-builds-unstable.yml | 107 +++++++++--------- 2 files changed, 61 insertions(+), 51 deletions(-) diff --git a/.github/workflows/package-builds-stable.yml b/.github/workflows/package-builds-stable.yml index ab8d7b24..063899fd 100644 --- a/.github/workflows/package-builds-stable.yml +++ b/.github/workflows/package-builds-stable.yml @@ -59,6 +59,11 @@ jobs: restore-keys: | ${{ runner.os }}-golang- + - uses: actions-rust-lang/setup-rust-toolchain@02be93da58aa71fb456aa9c43b301149248829d8 # v1.15.1 + with: + cache: false + target: wasm32-unknown-unknown + - name: install node deps run: | npm ci diff --git a/.github/workflows/package-builds-unstable.yml b/.github/workflows/package-builds-unstable.yml index e7225397..a1e81092 100644 --- a/.github/workflows/package-builds-unstable.yml +++ b/.github/workflows/package-builds-unstable.yml @@ -2,9 +2,9 @@ name: Package builds (unstable) on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -15,60 +15,65 @@ jobs: #runs-on: alrest-techarohq runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - with: - persist-credentials: false - fetch-tags: true - fetch-depth: 0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + fetch-tags: true + fetch-depth: 0 - - name: build essential - run: | - sudo apt-get update - sudo apt-get install -y build-essential + - name: build essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential - - name: Set up Homebrew - uses: Homebrew/actions/setup-homebrew@main + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@main - - name: Setup Homebrew cellar cache - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 - with: - path: | - /home/linuxbrew/.linuxbrew/Cellar - /home/linuxbrew/.linuxbrew/bin - /home/linuxbrew/.linuxbrew/etc - /home/linuxbrew/.linuxbrew/include - /home/linuxbrew/.linuxbrew/lib - /home/linuxbrew/.linuxbrew/opt - /home/linuxbrew/.linuxbrew/sbin - /home/linuxbrew/.linuxbrew/share - /home/linuxbrew/.linuxbrew/var - key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} - restore-keys: | - ${{ runner.os }}-go-homebrew-cellar- + - name: Setup Homebrew cellar cache + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 + with: + path: | + /home/linuxbrew/.linuxbrew/Cellar + /home/linuxbrew/.linuxbrew/bin + /home/linuxbrew/.linuxbrew/etc + /home/linuxbrew/.linuxbrew/include + /home/linuxbrew/.linuxbrew/lib + /home/linuxbrew/.linuxbrew/opt + /home/linuxbrew/.linuxbrew/sbin + /home/linuxbrew/.linuxbrew/share + /home/linuxbrew/.linuxbrew/var + key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-homebrew-cellar- - - name: Install Brew dependencies - run: | - brew bundle + - name: Install Brew dependencies + run: | + brew bundle - - name: Setup Golang caches - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-golang- + - name: Setup Golang caches + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- - - name: install node deps - run: | - npm ci + - uses: actions-rust-lang/setup-rust-toolchain@02be93da58aa71fb456aa9c43b301149248829d8 # v1.15.1 + with: + cache: false + target: wasm32-unknown-unknown - - name: Build Packages - run: | - go tool yeet + - name: install node deps + run: | + npm ci - - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - with: - name: packages - path: var/* + - name: Build Packages + run: | + go tool yeet + + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: packages + path: var/*