ci(packages): fix builds

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-09-28 02:48:00 +00:00
parent 9959cb0d06
commit bed126e641
2 changed files with 61 additions and 51 deletions

View File

@@ -59,6 +59,11 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-golang- ${{ 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 - name: install node deps
run: | run: |
npm ci npm ci

View File

@@ -2,9 +2,9 @@ name: Package builds (unstable)
on: on:
push: push:
branches: [ "main" ] branches: ["main"]
pull_request: pull_request:
branches: [ "main" ] branches: ["main"]
permissions: permissions:
contents: read contents: read
@@ -15,60 +15,65 @@ jobs:
#runs-on: alrest-techarohq #runs-on: alrest-techarohq
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
steps: steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with: with:
persist-credentials: false persist-credentials: false
fetch-tags: true fetch-tags: true
fetch-depth: 0 fetch-depth: 0
- name: build essential - name: build essential
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y build-essential sudo apt-get install -y build-essential
- name: Set up Homebrew - name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@main uses: Homebrew/actions/setup-homebrew@main
- name: Setup Homebrew cellar cache - name: Setup Homebrew cellar cache
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with: with:
path: | path: |
/home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/bin
/home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/etc
/home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/include
/home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/lib
/home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/opt
/home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/sbin
/home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/share
/home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/var
key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go-homebrew-cellar- ${{ runner.os }}-go-homebrew-cellar-
- name: Install Brew dependencies - name: Install Brew dependencies
run: | run: |
brew bundle brew bundle
- name: Setup Golang caches - name: Setup Golang caches
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with: with:
path: | path: |
~/.cache/go-build ~/.cache/go-build
~/go/pkg/mod ~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-golang- ${{ runner.os }}-golang-
- name: install node deps - uses: actions-rust-lang/setup-rust-toolchain@02be93da58aa71fb456aa9c43b301149248829d8 # v1.15.1
run: | with:
npm ci cache: false
target: wasm32-unknown-unknown
- name: Build Packages - name: install node deps
run: | run: |
go tool yeet npm ci
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - name: Build Packages
with: run: |
name: packages go tool yeet
path: var/*
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: packages
path: var/*