Skip to content

Commit c0b243d

Browse files
committed
Refactor code, and prep for 03.1 release
0 parents  commit c0b243d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+7178
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: /
5+
schedule:
6+
interval: daily
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- v[0-9]+.*
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: taiki-e/create-gh-release-action@v1
17+
with:
18+
changelog: CHANGELOG.md
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
upload-assets:
22+
needs: create-release
23+
strategy:
24+
matrix:
25+
include:
26+
- target: x86_64-unknown-linux-gnu
27+
os: ubuntu-latest
28+
- target: x86_64-apple-darwin
29+
os: macos-latest
30+
- target: aarch64-apple-darwin
31+
os: macos-latest
32+
- target: x86_64-pc-windows-msvc
33+
os: windows-latest
34+
runs-on: ${{ matrix.os }}
35+
steps:
36+
- name: Install dependencies on Ubuntu
37+
if: runner.os == 'Linux'
38+
run: sudo apt install libdbus-1-dev pkg-config upx
39+
40+
# needs post build script to pack the binary
41+
# - name: Install UPX on macOS
42+
# if: runner.os == 'macOS'
43+
# run: brew install upx
44+
#
45+
# - name: Install UPX on Windows
46+
# if: runner.os == 'Windows'
47+
# run: choco install upx
48+
49+
50+
- uses: actions/checkout@v4
51+
- uses: taiki-e/upload-rust-binary-action@v1
52+
with:
53+
bin: cloudflare-ddns
54+
target: ${{ matrix.target }}
55+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: It builds!
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
name: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
profile: minimal
22+
components: rustfmt, clippy
23+
24+
- name: Install dependencies on Ubuntu
25+
if: runner.os == 'Linux'
26+
run: sudo apt install libdbus-1-dev pkg-config upx
27+
28+
- name: cargo fmt
29+
uses: actions-rs/cargo@v1
30+
with:
31+
command: fmt
32+
args: --check
33+
- name: cargo clippy
34+
uses: actions-rs/cargo@v1
35+
with:
36+
command: clippy
37+
- name: cargo test
38+
uses: actions-rs/cargo@v1
39+
with:
40+
command: test
41+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target/

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
This project adheres to [Semantic Versioning](https://semver.org).
6+
7+
## [0.3.1] - 2025-04-30
8+
- simultaneous Ipv6 and Ipv4 support
9+
10+
## [0.3.0] - 2024-08-16
11+
- Ipv6 support
12+
13+
## [0.2.0] - 2024-08-16
14+
- Remove experimental wasm runtime.
15+
- improve executable size.
16+
- Finally, add a README.md.
17+
18+
## [0.1.0] - 2024-06-18
19+
- Initial release.

0 commit comments

Comments
 (0)