Release initialization/logger #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release initialization/logger | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'release version' | |
required: true | |
jobs: | |
build: | |
if: github.actor == 'roshanrags' | |
name: Release | |
strategy: | |
matrix: | |
include: | |
- os: 'ubuntu-24.04' | |
runs-on: 'ubicloud-standard-8' | |
OOS: linux | |
ARCH: amd64 | |
- os: 'ubuntu-24.04' | |
runs-on: 'ubicloud-standard-8-arm' | |
OOS: linux | |
ARCH: arm64 | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- name: echo | |
run: | | |
echo revision ${{github.event.inputs.revision}} | |
- name: Install Nix | |
uses: cachix/install-nix-action@v30 | |
- name: Cachix | |
uses: cachix/cachix-action@v15 | |
with: | |
name: oyster | |
authToken: ${{secrets.CACHIX_AUTH_TOKEN}} | |
- name: build | |
run: nix build -vL --accept-flake-config github:marlinprotocol/oyster-monorepo/logger-${{github.event.inputs.version}}#musl.initialization.logger.default | |
- name: upload | |
run: AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} aws s3 cp --endpoint-url ${{secrets.AWS_S3_ENDPOINT}} ./result/bin/logger s3://artifacts/oyster/binaries/nitro-logger_${{github.event.inputs.version}}_${{matrix.OOS}}_${{matrix.ARCH}} |