Skip to content

Lance/repros support #736

Lance/repros support

Lance/repros support #736

Workflow file for this run

name: artifacts-build
on:
push:
tags:
- v*.*.*
branches:
- main
pull_request:
workflow_dispatch: # Allows manual invocation
jobs:
build:
name: build artifacts
# We use a special group that is configured to use github largest runner instance
# This is charged by the minute, so if you want to reduce cost change back to `runs-on: ubuntu-latest`
runs-on:
group: ubuntu-runners
steps:
- name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Docker
uses: ./.github/actions/docker-setup
- name: Run `make`
shell: 'script -q -e -c "bash {0}"'
run: |
make -j$(nproc)
reproduce:
name: reproduce artifacts
runs-on:
group: ubuntu-runners
strategy:
matrix:
host: [144.76.154.76]
steps:
- name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run `make`
run: |
mkdir -p ~/.ssh/
chmod 700 ~/.ssh
echo "${{ secrets.REPROS_KEY }}" > ~/.ssh/repros.key
chmod 600 ~/.ssh/repros.key
cat >>~/.ssh/config <<-END
Host $${{matrix.host}}
HostName ${{matrix.host}}
User git
IdentityFile ~/.ssh/repros.key
StrictHostKeyChecking no
END
echo "Using key: ~/.ssh/repros.key"
ssh-keygen -l -f /home/runner/.ssh/repros.key
ssh-keyscan -H ${{matrix.host}} >> ~/.ssh/known_hosts
git remote add repros-lance git@${{matrix.host}}:qos
ssh-agent sh -c " \
ssh-add ~/.ssh/repros.key \
&& git push repros-lance HEAD \
"