github.com/transparency-dev/armored-witness-applet@v0.1.1/.github/workflows/pr_build.yml (about) 1 name: PR CI 2 3 on: [push, pull_request] 4 5 permissions: 6 contents: read 7 8 jobs: 9 build: 10 env: 11 TAMAGO_VERSION: 1.22.0 12 TAMAGO: /usr/local/tamago-go/bin/go 13 APPLET_PRIVATE_KEY: /tmp/applet.sec 14 APPLET_PUBLIC_KEY: /tmp/applet.pub 15 LOG_ORIGIN: throwaway.transparency.dev/armored-witness-applet/pr-build/0 16 LOG_PRIVATE_KEY: /tmp/log.sec 17 LOG_PUBLIC_KEY: /tmp/log.pub 18 OS_PRIVATE_KEY1: /tmp/os1.sec 19 OS_PUBLIC_KEY1: /tmp/os1.pub 20 OS_PRIVATE_KEY2: /tmp/os2.sec 21 OS_PUBLIC_KEY2: /tmp/os2.pub 22 runs-on: ubuntu-latest 23 steps: 24 - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 25 - name: Install tools 26 run: | 27 wget -q https://github.com/usbarmory/tamago-go/releases/download/tamago-go${TAMAGO_VERSION}/tamago-go${TAMAGO_VERSION}.linux-amd64.tar.gz 28 sudo tar -xf tamago-go${TAMAGO_VERSION}.linux-amd64.tar.gz -C / 29 sudo apt install protobuf-compiler protoc-gen-go 30 - name: Create throwaway keys 31 run: | 32 go run github.com/transparency-dev/serverless-log/cmd/generate_keys@HEAD --key_name="DEV-APPLET" --out_priv=${APPLET_PRIVATE_KEY} --out_pub=${APPLET_PUBLIC_KEY} 33 go run github.com/transparency-dev/serverless-log/cmd/generate_keys@HEAD --key_name="DEV-LOG" --out_priv=${LOG_PRIVATE_KEY} --out_pub=${LOG_PUBLIC_KEY} 34 go run github.com/transparency-dev/serverless-log/cmd/generate_keys@HEAD --key_name="DEV-OS1" --out_priv=${OS_PRIVATE_KEY1} --out_pub=${OS_PUBLIC_KEY1} 35 go run github.com/transparency-dev/serverless-log/cmd/generate_keys@HEAD --key_name="DEV-OS2" --out_priv=${OS_PRIVATE_KEY2} --out_pub=${OS_PUBLIC_KEY2} 36 - name: Make 37 run: | 38 DEBUG=1 make trusted_applet