Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
branches:
- main

permissions: {}

env:
RUSTFLAGS: -Dwarnings

Expand All @@ -29,6 +31,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- name: Install rustfmt and clippy
run: rustup toolchain install $RUSTUP_TOOLCHAIN --profile minimal --component rustfmt --component clippy
- name: Cache rust cargo artifacts
Expand All @@ -49,6 +52,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- name: Rebuild constants
run: npm run build:core:constants
- name: Check that constants are not changed
Expand All @@ -61,6 +65,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: EmbarkStudios/cargo-deny-action@v2
with:
arguments: --all-features --workspace
Expand All @@ -74,6 +79,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- name: Check provider database
run: scripts/update-provider-database.sh

Expand All @@ -86,6 +92,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v2
- name: Rustdoc
Expand All @@ -111,6 +118,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Install Rust ${{ matrix.rust }}
run: rustup toolchain install --profile minimal ${{ matrix.rust }}
Expand Down Expand Up @@ -147,6 +155,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v2
Expand All @@ -171,6 +180,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@v2
Expand All @@ -192,6 +202,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Install tox
run: pip install tox
Expand Down Expand Up @@ -234,6 +245,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Download libdeltachat.a
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -286,6 +298,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Install python
uses: actions/setup-python@v5
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/deltachat-rpc-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
release:
types: [published]

permissions: {}

jobs:
# Build a version statically linked against musl libc
# to avoid problems with glibc version incompatibility.
Expand All @@ -31,6 +33,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

Expand All @@ -55,6 +58,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

Expand All @@ -80,6 +84,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Setup rust target
run: rustup target add ${{ matrix.arch }}-apple-darwin
Expand All @@ -105,6 +110,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

Expand Down Expand Up @@ -132,6 +138,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

Expand Down Expand Up @@ -258,8 +265,9 @@ jobs:
if: github.event_name == 'release'
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
REF_NAME: ${{ github.ref_name }}
run: |
gh release upload ${{ github.ref_name }} \
gh release upload "$REF_NAME" \
--repo ${{ github.repository }} \
bin/* dist/*

Expand All @@ -280,6 +288,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand Down Expand Up @@ -385,8 +394,9 @@ jobs:
if: github.event_name == 'release'
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
REF_NAME: ${{ github.ref_name }}
run: |
gh release upload ${{ github.ref_name }} \
gh release upload "$REF_NAME" \
--repo ${{ github.repository }} \
deltachat-rpc-server/npm-package/*.tgz

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/jsonrpc-client-npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
release:
types: [published]

permissions: {}

jobs:
pack-module:
name: "Publish @deltachat/jsonrpc-client"
Expand All @@ -15,6 +17,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- uses: actions/setup-node@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/jsonrpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
branches: [main]

permissions: {}

env:
CARGO_TERM_COLOR: always
RUST_MIN_STACK: "8388608"
Expand All @@ -17,6 +19,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
branches:
- main

permissions: {}

jobs:
format:
name: check flake formatting
Expand All @@ -20,6 +22,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix fmt
Expand Down Expand Up @@ -80,6 +83,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build .#${{ matrix.installable }}
Expand All @@ -99,6 +103,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build .#${{ matrix.installable }}
3 changes: 3 additions & 0 deletions .github/workflows/node-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ on:
branches:
- main

permissions: {}

jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false

- name: Use Node.js 18.x
uses: actions/setup-node@v4
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/node-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "*"
- "!py-*"

permissions: {}

jobs:
prebuild:
name: Prebuild
Expand All @@ -17,6 +19,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "18"
Expand Down Expand Up @@ -78,6 +81,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "18"
Expand Down Expand Up @@ -142,6 +146,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "18"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/node-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
branches:
- main

permissions: {}

jobs:
tests:
name: Tests
Expand All @@ -26,6 +28,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "18"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-deltachat-rpc-client-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
release:
types: [published]

permissions: {}

jobs:
build:
name: Build distribution
Expand All @@ -14,6 +16,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- name: Install pypa/build
run: python3 -m pip install build
- name: Build a binary wheel and a source tarball
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/repl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ name: Build Windows REPL .exe
on:
workflow_dispatch:

permissions: {}

jobs:
build_repl:
name: Build REPL example
Expand All @@ -15,6 +17,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/upload-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
- build_jsonrpc_docs_ci

permissions: {}

jobs:
build-rs:
runs-on: ubuntu-latest
Expand All @@ -14,6 +16,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
- name: Build the documentation with cargo
run: |
cargo doc --package deltachat --no-deps --document-private-items
Expand All @@ -31,6 +34,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
fetch-depth: 0 # Fetch history to calculate VCS version number.
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
Expand All @@ -50,6 +54,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
fetch-depth: 0 # Fetch history to calculate VCS version number.
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
Expand All @@ -72,6 +77,7 @@ jobs:
- uses: actions/checkout@v4
with:
show-progress: false
persist-credentials: false
fetch-depth: 0 # Fetch history to calculate VCS version number.
- name: Use Node.js
uses: actions/setup-node@v4
Expand Down
Loading
Loading