From bdb8f1b729cf39b71422db651b8fa0d6183ea720 Mon Sep 17 00:00:00 2001 From: randymcmillan Date: Thu, 27 Jun 2024 15:47:54 -0400 Subject: [PATCH] .github/workflows/docker.yml --- .github/workflows/docker.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 00000000..d95f898a --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,39 @@ +name: gnostr-docker + +on: + push: + tags: + - '**[0-9]+.[0-9]+.[0-9]+*' + pull_request: + branches: + - '*' + - '*/*' + - '**' + - 'master' + - 'main' + +env: + GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest"] + tag: ["latest", "slim-bullseye"] + runs-on: ${{ matrix.os }} + container: rust:${{ matrix.tag }} + + steps: + - run: apt-get update && apt-get install autoconf build-essential curl cmake jq libexpat1-dev libcurl4-openssl-dev libssl-dev libtool lsb-release git make nodejs npm pkg-config python3 python-is-python3 sudo tcl zlib1g-dev -y + - run: printenv + - run: cargo search nostr --limit 100 + - name: checkout@v3 fetch-depth submodules set-safe-dir true + uses: actions/checkout@v3 + with: + fetch-depth: '0' + submodules: 'true' + set-safe-directory: 'true' + - run: make + - run: make build