Skip to content

Commit 09062f5

Browse files
author
mike dupont
committed
reset github actions
1 parent 6861c61 commit 09062f5

9 files changed

+155
-205
lines changed

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ None: Automated tests are acceptable.
7878
## Deployment instructions
7979
-->
8080

81-
<!-- If you are on Discord, please join https://discord.gg/ai16z and state your Discord username here for the contributor role and join us in #development-feed -->
81+
<!-- If you are on Discord, please join https://discord.gg/elizaOS and state your Discord username here for the contributor role and join us in #development-feed -->
8282
<!--
8383
## Discord username
8484

.github/workflows/fetch-news.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Fetch News Files
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Run daily at midnight UTC
6+
workflow_dispatch: # Allow manual triggering
7+
8+
jobs:
9+
fetch-news:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
ref: autodocs
16+
17+
- name: Run news fetcher
18+
run: |
19+
chmod +x docs/scripts/fetch-news.sh
20+
./docs/scripts/fetch-news.sh
21+
22+
- name: Commit and push if changes exist
23+
run: |
24+
git config --global user.name 'GitHub Actions Bot'
25+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
26+
git add docs/news/
27+
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-update news files" && git push origin autodocs)
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Update Changelog
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
update_changelog:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.x'
22+
23+
- name: Configure Git
24+
run: |
25+
git config user.name "GitHub Actions"
26+
git config user.email "actions@github.com"
27+
28+
- name: Check if autodocs branch exists and create or switch to it
29+
run: |
30+
if git ls-remote --heads origin autodocs | grep autodocs; then
31+
echo "Branch autodocs exists, checking out"
32+
git checkout autodocs
33+
git pull origin autodocs
34+
else
35+
echo "Branch autodocs doesn't exist, creating"
36+
git checkout -b autodocs
37+
fi
38+
39+
- name: Generate changelog
40+
run: python3 docs/scripts/get-changelog.py --output docs/docs/changelog.md
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
43+
44+
- name: Commit and push changes
45+
run: |
46+
git add docs/changelog.md
47+
git commit -m "docs: update changelog for ${{ github.event.release.tag_name }}" || echo "No changes to commit"
48+
git push origin autodocs
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
+17-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Integration Tests
2-
32
on:
43
push:
54
branches:
@@ -8,36 +7,33 @@ on:
87
branches:
98
- "*"
109

11-
env:
12-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
13-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
14-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
15-
1610
jobs:
1711
integration-tests:
1812
runs-on: ubuntu-latest
13+
env:
14+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
15+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
16+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
17+
TURBO_CACHE: remote:rw
1918
steps:
20-
- name: Checkout repository
21-
uses: actions/checkout@v4
22-
23-
- name: Install Bun
24-
uses: oven-sh/setup-bun@v2
19+
- uses: actions/checkout@v4
20+
with:
21+
submodules: true # Ensures submodules are checked out
2522

26-
- name: Install Node.js
27-
uses: actions/setup-node@v4
23+
- uses: pnpm/action-setup@v3
2824
with:
29-
node-version: "23"
25+
version: 9.15.0
3026

31-
- name: Install required packages
32-
run: |
33-
sudo apt update
34-
sudo apt -y install build-essential pkg-config libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: "23.3"
30+
cache: "pnpm"
3531

3632
- name: Install dependencies
37-
run: bun install
33+
run: pnpm install --no-frozen-lockfile
3834

3935
- name: Build packages
40-
run: bun run build
36+
run: pnpm build
4137

4238
- name: Check for API key
4339
run: |
@@ -47,4 +43,4 @@ jobs:
4743
fi
4844
4945
- name: Run integration tests
50-
run: bun run test
46+
run: pnpm run integrationTests

.github/workflows/smoke-tests.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: smoke-test
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
pull_request:
7+
branches:
8+
- "*"
9+
10+
jobs:
11+
smoke-tests:
12+
runs-on: ubuntu-latest
13+
env:
14+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
15+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
16+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
17+
TURBO_CACHE: remote:rw
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
submodules: true # Ensures submodules are checked out
22+
- uses: pnpm/action-setup@v3
23+
with:
24+
version: 9.15.0
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: "23.3"
29+
cache: "pnpm"
30+
31+
- name: Run smoke tests
32+
run: pnpm run smokeTests
33+
34+
- name: Upload test results
35+
if: always()
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: test-results-${{env.MODIFIED_BRANCH_NAME}}
39+
path: ${{env.OUTPUT_TEST_DIR}}

.github/workflows/tauri-ci.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ name: Native App
33
env:
44
GH_TOKEN: ${{ secrets.GH_TOKEN }}
55
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6-
# Skip binary downloads during install
7-
YOUTUBE_DL_SKIP_DOWNLOAD: true
8-
ADBLOCK: true
9-
PUPPETEER_SKIP_DOWNLOAD: true
10-
CYPRESS_INSTALL_BINARY: 0
11-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
126

137
on:
148
push:
@@ -33,6 +27,8 @@ jobs:
3327
env:
3428
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
3529
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
30+
TURBO_REMOTE_ONLY: true # Enforces remote-only caching
31+
TURBO_CACHE: remote:rw # allow r/w to remote cache
3632

3733
steps:
3834
- name: Checkout repository
@@ -62,12 +58,14 @@ jobs:
6258
run: |
6359
sudo apt-get update
6460
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev libx11-dev libxdo-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
65-
66-
- name: Install dependencies
67-
run: bun install
68-
env:
69-
NPM_CONFIG_IGNORE_SCRIPTS: true
70-
61+
62+
- name: Install dependencies
63+
run: bun install --no-postinstall
64+
65+
- name: Trust all package managers
66+
run: |
67+
bun pm trust --all
68+
7169
- name: Build packages
7270
run: bun run build
7371

@@ -84,4 +82,4 @@ jobs:
8482
- name: Test build (verify it compiles)
8583
run: |
8684
cd packages/app
87-
bun run tauri build --debug
85+
bun run tauri build --debug

.github/workflows/tauri-release.yml

+10-32
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,13 @@ env:
1414
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
1515
TURBO_REMOTE_ONLY: true # Enforces remote-only caching
1616
TURBO_CACHE: remote:rw # allow r/w to remote cache
17-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
# Skip binary downloads during install
20-
YOUTUBE_DL_SKIP_DOWNLOAD: true
21-
ADBLOCK: true
22-
PUPPETEER_SKIP_DOWNLOAD: true
23-
CYPRESS_INSTALL_BINARY: 0
24-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
2517

2618
jobs:
2719
build-and-publish:
2820
strategy:
2921
fail-fast: false
3022
matrix:
31-
platform: [macos-latest, ubuntu-latest] # , windows-latest]
23+
platform: [macos-latest, ubuntu-latest, windows-latest]
3224
include:
3325
- platform: macos-latest
3426
target: universal-apple-darwin
@@ -38,10 +30,10 @@ jobs:
3830
target: x86_64-unknown-linux-gnu
3931
output-dir: src-tauri/target/release/bundle
4032
asset-suffix: _amd64
41-
# - platform: windows-latest
42-
# target: x86_64-pc-windows-msvc
43-
# output-dir: src-tauri/target/release/bundle/nsis
44-
# asset-suffix: _x64-setup.exe
33+
- platform: windows-latest
34+
target: x86_64-pc-windows-msvc
35+
output-dir: src-tauri/target/release/bundle/nsis
36+
asset-suffix: _x64-setup.exe
4537

4638
runs-on: ${{ matrix.platform }}
4739

@@ -59,12 +51,10 @@ jobs:
5951
- name: Install Bun
6052
uses: oven-sh/setup-bun@v2
6153

62-
- name: Setup Rust
63-
run: |
64-
rustup update stable
65-
rustup default stable
66-
rustup target add ${{ matrix.target }}
67-
shell: bash
54+
- name: Rust setup
55+
uses: dtolnay/rust-toolchain@stable
56+
with:
57+
targets: ${{ matrix.target }}
6858

6959
- name: Rust cache
7060
uses: swatinem/rust-cache@v2
@@ -76,30 +66,18 @@ jobs:
7666
if: matrix.platform == 'ubuntu-latest'
7767
run: |
7868
sudo apt-get update
79-
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev libx11-dev libxdo-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
69+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev libx11-dev libxdo-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
8070
8171
- name: Install dependencies (mac only - for universal builds)
8272
if: matrix.platform == 'macos-latest'
8373
run: |
8474
rustup target add aarch64-apple-darwin
8575
86-
- name: Create .npmrc to skip postinstall scripts
87-
run: |
88-
echo "ignore-scripts=true" > .npmrc
89-
shell: bash
90-
9176
- name: Install dependencies
9277
run: bun install --no-postinstall
93-
env:
94-
NPM_CONFIG_IGNORE_SCRIPTS: true
9578

9679
- name: Build packages
9780
run: bun run build
98-
99-
- name: Install Tauri CLI
100-
run: |
101-
bun install -g @tauri-apps/cli
102-
shell: bash
10381

10482
- name: Build the app (macOS)
10583
if: matrix.platform == 'macos-latest'

0 commit comments

Comments
 (0)