Skip to content

Move flaky tests from the "nil" group #18

Move flaky tests from the "nil" group

Move flaky tests from the "nil" group #18

Workflow file for this run

name: Build artifacts
on:
pull_request:
workflow_dispatch:
merge_group:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build_artifacts:
name: Build artifacts
runs-on: ["self-hosted", "aws_autoscaling"]
environment: prod
steps:
- name: checkout local actions
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run formatters
run: |
./scripts/sh_format_all.sh -n -c
./scripts/nix_format_all.sh -n -c
- name: Generate required go files
run: nix develop -c make generated
- name: golangci-lint
run: nix develop -c golangci-lint run
- name: build
run: nix build -L
- name: Upload nil binary as artifact
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: nil-linux-x64
path: |
result/bin/nil
- name: upload packages to s3
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
run: |
export PATH=/home/ec2-user/.local/bin:${PATH}
nix bundle --bundler . .#nil -L
sudo yum update -y
sudo yum install -y awscli python3-pip
pip3 install -U mkrepo
aws s3 cp "deb-package-nil/`ls deb-package-nil`" s3://nil-deb-repo/ubuntu/pool/main/d/nil/
mkrepo s3://nil-deb-repo/ubuntu