Skip to content

Commit

Permalink
Merge branch 'publishable-client-library' into monkey-patch-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
brettimus committed Jun 5, 2024
2 parents 9163393 + 6c08773 commit 26c5a2f
Show file tree
Hide file tree
Showing 121 changed files with 14,910 additions and 6,587 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Test and build the project.
---
name: Build API

on:
# Allow manual trigger
workflow_dispatch:

# Run on every pull request
pull_request:
branches: ["*"]

# Run on every push to main
push:
branches: ["main"]

jobs:
build-rust:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest-8-cores

name: Create binary for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
env:
CARGO: cargo
TARGET_FLAGS: ""
TARGET_DIR: ../target
RUST_BACKTRACE: 1

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: "" # Do not fail on warnings, so reset the default value to empty

- name: cargo test
run: cargo test

- name: cargo build
run: cargo build --release

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: fpx_${{ matrix.target }}
path: target/release/fpx
if-no-files-found: error
retention-days: 7
35 changes: 35 additions & 0 deletions .github/workflows/build_frontends.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will be triggered by a GitHub pull-request.
---
name: Build node packages

on:
pull_request:
branches: ["*"]
push:
branches: ["main", "release-*"]

env:
CARGO_TERM_COLOR: always
FORCE_COLOR: true

jobs:
build_packages:
name: Build packages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: lts/*
cache: npm
- name: Install dependencies
run: npm ci --workspaces

- name: Lint all workspaces
run: npm run lint:ci --workspaces

- name: Build all workspaces
run: npm run build --workspaces --if-present
38 changes: 37 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
# Rust targets
**/target
target

.env
.envrc

# Mac
.DS_Store

# VS Code
.vscode/*
*.code-workspace

# CLion
.idea

# TypeScript / Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
node_modules
package-lock.json
yarn-error.log

# Build tools
.parcel-cache*
.nx/cache
*.tsbuildinfo

# Personal files
mizu.boots.code-workspace
start-dev.sh
.vscode
node_modules
start-dev.sh
Loading

0 comments on commit 26c5a2f

Please sign in to comment.