Skip to content

Commit d31e361

Browse files
committed
Add github stuff
1 parent b833819 commit d31e361

15 files changed

+1730
-0
lines changed

.github/ansible/redeploy-relay.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
- name: Update iroh-relay node
3+
hosts: derper
4+
become: yes
5+
6+
tasks:
7+
- name: Fetch iroh-relay binary
8+
get_url:
9+
url: https://vorc.s3.us-east-2.amazonaws.com/iroh-relay-linux-amd64-{{ relay_version }}
10+
mode: '0755'
11+
force: yes
12+
dest: /usr/local/bin/iroh-relay
13+
- name: Allow ports
14+
shell:
15+
cmd: sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/iroh-relay
16+
- name: Make sure iroh-relay is started
17+
ansible.builtin.systemd:
18+
state: restarted
19+
enabled: yes
20+
name: iroh-relay

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Keep GitHub Actions up to date with GitHub's Dependabot...
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
3+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*" # Group all Actions updates into a single larger pull request
12+
schedule:
13+
interval: weekly

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Description
2+
3+
<!-- A summary of what this pull request achieves and a rough list of changes. -->
4+
5+
## Breaking Changes
6+
7+
<!-- Optional, if there are any breaking changes document them, including how to migrate older code. -->
8+
9+
## Notes & open questions
10+
11+
<!-- Any notes, remarks or open questions you have to make about the PR. -->
12+
13+
## Change checklist
14+
15+
- [ ] Self-review.
16+
- [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant.
17+
- [ ] Tests if relevant.
18+
- [ ] All breaking changes documented.

.github/workflows/beta.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Run tests using the beta Rust compiler
2+
3+
name: Beta Rust
4+
5+
on:
6+
schedule:
7+
# 06:50 UTC every Monday
8+
- cron: '50 6 * * 1'
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: beta-${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
IROH_FORCE_STAGING_RELAYS: "1"
17+
18+
jobs:
19+
tests:
20+
uses: './.github/workflows/tests.yaml'
21+
with:
22+
rust-version: beta
23+
notify:
24+
needs: tests
25+
if: ${{ always() }}
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Extract test results
29+
run: |
30+
printf '${{ toJSON(needs) }}\n'
31+
result=$(echo '${{ toJSON(needs) }}' | jq -r .tests.result)
32+
echo TESTS_RESULT=$result
33+
echo "TESTS_RESULT=$result" >>"$GITHUB_ENV"
34+
- name: Notify discord on failure
35+
uses: n0-computer/discord-webhook-notify@v1
36+
if: ${{ env.TESTS_RESULT == 'failure' }}
37+
with:
38+
severity: error
39+
details: |
40+
Rustc beta tests failed
41+
See https://github.com/n0-computer/iroh/actions/workflows/beta.yaml
42+
webhookUrl: ${{ secrets.DISCORD_N0_GITHUB_CHANNEL_WEBHOOK_URL }}
43+

0 commit comments

Comments
 (0)