8000 `next` tracking PR for `3.0.0` by augustoccesar · Pull Request #209 · mentimeter/linkup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

next tracking PR for 3.0.0 #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
46d5efe
feat(cli, next): use self signed certificates for local-dns (#201)
augustoccesar Mar 18, 2025
e01dca4
feat(cli, ci, next): generate pre-release version on next or dispatch…
augustoccesar Mar 18, 2025
16fc86d
fix: allow HTTPS server to run without certificates (#207)
augustoccesar Mar 20, 2025
2f6ec59
feat(cli, next): support pre-release versions (#204)
augustoccesar Mar 21, 2025
6be7424
fix(next, cli): uninstall should continue if folder is not found (#210)
augustoccesar Mar 24, 2025
d077d3f
feat(next, cli): remove required sudo for start and stop (#212)
augustoccesar Mar 24, 2025
de7a78b
feat(next, cli): support installing beta releases from shell script (…
augustoccesar Mar 24, 2025
608415b
fix: allow beta client requests to worker (#213)
augustoccesar Mar 24, 2025
1ff1ad3
fix(docs): move pre-release variable to sh command (#214)
augustoccesar Mar 24, 2025
97b6f91
feat: improve CA certificate install/uninstall lifecycle (#215)
augustoccesar Mar 24, 2025
1ec33e1
feat: uninstall local-dns on linkup uninstall (#217)
augustoccesar Mar 25, 2025
7c9f2a3
refactor: change from global error enum to anyhow (#218)
augustoccesar Mar 28, 2025
3bd7e93
refactor: small feedback improvement on local-dns installation (#220)
augustoccesar Mar 31, 2025
f7d4380
feat: local DNS server with Hickory (#219)
augustoccesar Mar 31, 2025
61f4238
Merge branch 'main' into next
augustoccesar Mar 31, 2025
978a4e5
feat(cli): support stable<->beta updates from the CLI (#221)
augustoccesar Apr 4, 2025
beb709b
feat: rely on command environment instead of PID file (#222)
augustoccesar Apr 4, 2025
d0d06c2
fix: local dns server issues (#224)
augustoccesar Apr 8, 2025
499a35f
feat(cli): move installation script to Python (#223)
augustoccesar Apr 8, 2025
bfb51aa
fix: possible orphans ignore linkup folder path if is in env variable…
augustoccesar Apr 8, 2025
44e6ba7
fix: install script missing parameter (#226)
augustoccesar Apr 8, 2025
d01c319
chore: cut release for 3.0.0
augustoccesar Apr 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 0 additions & 99 deletions .github/workflows/caddy.yml

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ name: CI
jobs:
check:
name: Check and Clippy
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
env:
RUSTFLAGS: -D warnings
steps:
Expand All @@ -30,8 +33,11 @@ jobs:
- run: cargo fmt --all --check

test:
name: Test Suite
runs-on: ubuntu-latest
name: Test Suite (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand Down
133 changes: 133 additions & 0 deletions .github/workflows/release-next.yml
outputs: 9E81
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: Create Release of next branch

on:
workflow_dispatch:
push:
branches:
- next

jobs:
generate-version:
name: Generate Release Version
runs-on: ubuntu-latest
version: ${{ steps.generate_version.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: "next"

- name: Generate Next Release Version
id: generate_version
uses: actions/github-script@v7
with:
script: |
const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');

const shortSha = execSync('git rev-parse --short HEAD').toString().trim();
const now = new Date();
const pad = (n) => n.toString().padStart(2, '0');
const timestamp = `${now.getFullYear()}${pad(now.getMonth()+1)}${pad(now.getDate())}${pad(now.getHours())}${pad(now.getMinutes())}`;
const nextVersion = `0.0.0-next-${timestamp}-${shortSha}`;

core.info(`Set release version to ${nextVersion}`);

core.setOutput('version', nextVersion);

build:
name: Build
runs-on: ${{ matrix.os }}
needs: [generate-version]
strategy:
matrix:
include:
- build: linux
os: depot-ubuntu-22.04-8
target: x86_64-unknown-linux-gnu
- build: aarch64
os: depot-ubuntu-22.04-arm-8
target: aarch64-unknown-linux-gnu
linker: gcc-aarch64-linux-gnu
- build: macos
os: depot-macos-14
target: x86_64-apple-darwin
- build: macos-aarch64
os: depot-macos-14
target: aarch64-apple-darwin
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: "next"

- name: Update Cargo.toml Version
run: |
sed -i.bak 's@^version = .*@version = "${{ needs.generate-version.outputs.version }}"@' linkup-cli/Cargo.toml
rm linkup-cli/Cargo.toml.bak

- name: Install Rust
run: |
rustup install stable
rustup target add ${{ matrix.target }}
rustup show

- name: Build
run: cargo build --release --manifest-path linkup-cli/Cargo.toml --target ${{ matrix.target }}

- name: Package and Calculate Checksums
id: package
uses: actions/github-script@v7
env:
TARGET: ${{ matrix.target }}
RUNNER_OS: ${{ runner.os }}
RELEASE_VERSION: ${{ needs.generate-version.outputs.version }}
with:
script: |
const { execSync } = require('child_process');
const fs = require('fs');
const os = require('os');
const path = require('path');

const releaseVersion = process.env.RELEASE_VERSION;
const target = process.env.TARGET;
const runnerOs = process.env.RUNNER_OS;
if (!releaseVersion) {
throw new Error("RELEASE_VERSION is not set");
}

const binaryPath = `target/${target}/release/linkup`;

const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'linkup-'));

fs.copyFileSync(binaryPath, path.join(tmpDir, 'linkup'));

const assetName = `linkup-${releaseVersion}-${target}.tar.gz`;
execSync(`tar czf ${assetName} -C ${tmpDir} linkup`);

let checksum;
if (runnerOs === 'Linux') {
checksum = execSync(`sha256sum ${assetName}`).toString().split(' ')[0];
} else {
checksum = execSync(`shasum -a 256 ${assetName}`).toString().split(' ')[0];
}

const checksumFile = `${assetName}.sha256`;
fs.writeFileSync(checksumFile, `${checksum} ${assetName}`);

core.setOutput('asset_name', assetName);
core.setOutput('checksum_file', checksumFile);

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.generate-version.outputs.version }}
target_commitish: next
prerelease: true
files: |
${{ steps.package.outputs.asset_name }}
${{ steps.package.outputs.checksum_file }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
0