mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
3.6 KiB
YAML
121 lines
3.6 KiB
YAML
name: Check lock files
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
paths:
|
|
- '**'
|
|
- '!mkdocs.yml'
|
|
- '!docs/**'
|
|
- '!*.md'
|
|
pull_request:
|
|
paths:
|
|
- '**'
|
|
- '!mkdocs.yml'
|
|
- '!docs/**'
|
|
- '!*.md'
|
|
|
|
jobs:
|
|
check_release_build-gdb:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
|
|
os: [
|
|
ubuntu-latest, # x86_64-linux
|
|
# ubuntu-arm, # aarch64-linux, not public yet
|
|
]
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # @v3
|
|
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # @v30
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- name: build pwndbg
|
|
run: nix build '.#pwndbg' --accept-flake-config -o result
|
|
|
|
- name: simple run pwndbg
|
|
run: TERM=xterm-256color ./result/bin/pwndbg <<< 'exit'
|
|
|
|
- name: configure cache
|
|
if: github.ref == 'refs/heads/dev'
|
|
uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
|
|
with:
|
|
name: pwndbg
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
skipPush: true
|
|
|
|
- name: upload cache
|
|
if: github.ref == 'refs/heads/dev'
|
|
run: cachix push -v pwndbg ./result
|
|
|
|
check_release_build-lldb:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
|
|
os: [
|
|
ubuntu-latest, # x86_64-linux
|
|
# ubuntu-arm, # aarch64-linux, not public yet
|
|
macos-13, # x86_64-darwin
|
|
macos-15, # aarch64-darwin
|
|
]
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # @v3
|
|
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # @v30
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- name: build pwndbg
|
|
run: nix build '.#pwndbg-lldb' --accept-flake-config -o result
|
|
|
|
- name: simple run pwndbg
|
|
run: TERM=xterm-256color ./result/bin/pwndbg-lldb <<< 'exit'
|
|
|
|
- name: configure cache
|
|
if: github.ref == 'refs/heads/dev'
|
|
uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
|
|
with:
|
|
name: pwndbg
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
skipPush: true
|
|
|
|
- name: upload cache
|
|
if: github.ref == 'refs/heads/dev'
|
|
run: cachix push -v pwndbg ./result
|
|
|
|
|
|
lock_flake:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # @v3
|
|
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # @v30
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- name: check flake.lock
|
|
run: nix flake lock --no-update-lock-file
|
|
|
|
lock_poetry:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # @v3
|
|
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # @v30
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- name: install poetry
|
|
run: nix profile install nixpkgs#poetry
|
|
|
|
- name: check poetry.lock
|
|
run: poetry check --lock
|
|
|