Skip to content
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

v0.6.13 #263

Merged
merged 72 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
f7570ca
Added aarch targets to test
iesahin Nov 30, 2024
949cb81
added need coverage again
iesahin Dec 13, 2024
e290948
Updated help string and added an example for ignored files in file list
iesahin Dec 13, 2024
3a174ca
fix a bug when cd cannot be found
iesahin Dec 13, 2024
cb63592
bump version
iesahin Dec 13, 2024
0ea01aa
fix git version string
iesahin Dec 13, 2024
23fe693
changelog
iesahin Dec 13, 2024
f4e8f61
Handle download errors more gracefully
iesahin Dec 13, 2024
fbf8905
changelog
iesahin Dec 13, 2024
9e732bf
add warnings about Git config to docs
iesahin Dec 15, 2024
d370c2c
Added -c core.quotepath=off to ls-files command
iesahin Dec 25, 2024
9f8a9bf
update changelog
iesahin Dec 25, 2024
f6be543
Hide directories in xvc file list output by default and add show-dirs…
iesahin Dec 25, 2024
334f737
updated filter flags
iesahin Dec 25, 2024
cb5de8c
Test debug
iesahin Dec 25, 2024
c3b3063
fix test
iesahin Dec 25, 2024
76f4355
rename join to left_join
iesahin Dec 26, 2024
f10f157
added xvc_path and metadata filtering
iesahin Dec 27, 2024
50cfa18
added starts_with_str and contains methods
iesahin Dec 27, 2024
1da3f22
added join methods
iesahin Dec 27, 2024
0e40685
added filter method
iesahin Dec 27, 2024
fd7bff0
hstore.subset now receives a slice instead of iterator
iesahin Dec 27, 2024
b2d9014
added path metadata filtering
iesahin Dec 27, 2024
2e67db8
test
iesahin Dec 27, 2024
b7d48de
debug starts_with
iesahin Dec 27, 2024
d341e4a
fix test
iesahin Dec 27, 2024
cacb080
update test script
iesahin Dec 27, 2024
924f5ec
Update references to reflect command option changes
iesahin Dec 27, 2024
7659b02
removed some watches
iesahin Dec 27, 2024
bd40957
Debug tests
iesahin Dec 27, 2024
fb34c94
tests
iesahin Dec 27, 2024
a9e67fa
remove watches
iesahin Dec 27, 2024
d475e18
fix test
iesahin Dec 27, 2024
ae4220e
Updates tests
iesahin Dec 27, 2024
6bd3129
removed watches
iesahin Dec 27, 2024
1d2aa01
update run script
iesahin Dec 27, 2024
2168ea3
bump version
iesahin Dec 27, 2024
488c05c
Added release.yml for cross compilation
iesahin Dec 28, 2024
823a33c
updated executable name
iesahin Dec 28, 2024
656a25a
comment out
iesahin Dec 28, 2024
35da7e0
added commands for each platform
iesahin Dec 28, 2024
1a71da8
removed --locked
iesahin Dec 28, 2024
8216e91
added args
iesahin Dec 28, 2024
e1af293
specified changes file and added some more targets
iesahin Dec 28, 2024
7ad39b8
removed RiscV platform from targets
iesahin Dec 28, 2024
3f512d5
Removed reflink from xvc-file's default features
iesahin Dec 28, 2024
5a21075
remove reflink from xvc default features
iesahin Dec 28, 2024
f5dfe23
Update Changelog
iesahin Dec 28, 2024
af2f765
removed netbsd target
iesahin Dec 28, 2024
1144a5b
sqlite fix
iesahin Dec 28, 2024
d5b9920
Remove Android build
iesahin Dec 29, 2024
3aa9899
remove duplicate
iesahin Dec 29, 2024
082b5d4
comment out release in rust.yml
iesahin Dec 29, 2024
8eb1d50
Added changelog line
iesahin Dec 29, 2024
55e5b28
Don't run release.yml for all PRs
iesahin Dec 29, 2024
3105e69
bump version
iesahin Dec 29, 2024
128ecc8
Bump date
iesahin Dec 29, 2024
3a983e0
Fix xvc-file-copy doc test
iesahin Dec 29, 2024
4ec0a71
removed watches from z_test_docs
iesahin Dec 29, 2024
443fd91
added new form for trace macro similar to watch! macro
iesahin Dec 29, 2024
5312791
removed some watches
iesahin Dec 29, 2024
3f51aa9
removed some watches
iesahin Dec 29, 2024
5dd1dc0
removed some watches
iesahin Dec 29, 2024
226477e
removed some watches
iesahin Dec 29, 2024
99ac91f
fixed unused variable warnings
iesahin Dec 29, 2024
51b5cd6
Fixed unused var warnings
iesahin Dec 29, 2024
b09f511
fixed some warnings
iesahin Dec 29, 2024
d043252
Add doc tests to join
iesahin Dec 30, 2024
6f92b89
don't run dev tests
iesahin Dec 30, 2024
293c153
added a doc test to xvc-store
iesahin Dec 30, 2024
d4d2736
fix test
iesahin Dec 30, 2024
d34ddfa
fix test
iesahin Dec 30, 2024
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
100 changes: 100 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Release

on:
workflow_dispatch:
# schedule:
# - cron: "17 17 * * *"
# pull_request:
# types: [labeled, review_requested]
push:
tags:
- "v*.*.*"

jobs:
release:
name: Release - ${{ matrix.platform.os-name }}
strategy:
matrix:
platform:
- os-name: FreeBSD-x86_64
runs-on: ubuntu-20.04
target: x86_64-unknown-freebsd
command: build
args: "--release --features=bundled-openssl"

- os-name: Linux-x86_64
runs-on: ubuntu-20.04
target: x86_64-unknown-linux-musl
command: build
args: "--release --features=bundled-openssl"

# FIXME: We need to install libsqlite in some of these targets but this is for later.
- os-name: Linux-aarch64
runs-on: ubuntu-20.04
target: aarch64-unknown-linux-musl
command: build
args: "--release --features=bundled-openssl,bundled-sqlite"

# FIXME: OpenSSL Compilation Errors
# - os-name: Linux-riscv64
# runs-on: ubuntu-20.04
# target: riscv64gc-unknown-linux-gnu
# command: build
# args: "--release --features=bundled-openssl"

# gh -R iesahin/xvc run view 12525734325 --log-failed
# - os-name: Linux-Android
# runs-on: ubuntu-22.04
# target: aarch64-linux-android
# command: build
# args: "--release --features=bundled-openssl,bundled-sqlite"

# gh -R iesahin/xvc run view 12525597866 --log-failed
# - os-name: NetBSD-x86_64
# runs-on: ubuntu-22.04
# target: x86_64-unknown-netbsd
# command: build
# args: "--release --features=bundled-openssl"

- os-name: Windows-x86_64
runs-on: windows-latest
target: x86_64-pc-windows-msvc
command: build
args: "--release --features=bundled-sqlite"

- os-name: Windows-aarch64
runs-on: windows-latest
target: aarch64-pc-windows-msvc
command: build
args: "--release --features=bundled-sqlite"

- os-name: macOS-x86_64
runs-on: macOS-latest
target: x86_64-apple-darwin
command: build
args: "--release"

- os-name: macOS-aarch64
runs-on: macOS-latest
target: aarch64-apple-darwin
command: build
args: "--release"
# more targets here ...

runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: ${{ matrix.platform.args }}
strip: true
- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
with:
executable-name: xvc
changes-file: "CHANGELOG.md"
target: ${{ matrix.platform.target }}
230 changes: 118 additions & 112 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,115 +132,121 @@ jobs:
if: matrix.benches
run: cargo test --benches ${{ matrix.features }}

deploy-linux:
name: deploy-linux
# needs: [coverage]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64-unknown-linux-gnu]

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: ${{ matrix.target }}

- name: Build target
run: cargo build --release --target ${{ matrix.target }} --features=bundled-openssl

- name: Package
shell: bash
run: |
#strip target/${{ matrix.target }}/release/xvc
cd target/${{ matrix.target }}/release
tar czvf ../../../xvc-${{ github.ref_name }}-${{ matrix.target }}.tar.gz xvc
cd -

- name: Publish
uses: softprops/action-gh-release@v1
# TODO: if any of the build step fails, the release should be deleted.
with:
files: "xvc*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy-windows:
name: deploy-windows
# needs: [coverage]
if: startsWith(github.ref, 'refs/tags/')
runs-on: windows-latest
strategy:
matrix:
target: [x86_64-pc-windows-gnu]
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: ${{ matrix.target }}

- name: Build target
run: cargo build --release --target ${{ matrix.target }} --features bundled-sqlite

- name: Package
shell: bash
run: |
#strip target/${{ matrix.target }}/release/xvc
cd target/${{ matrix.target }}/release
tar czvf ../../../xvc-${{ github.ref_name}}-${{ matrix.target }}.tar.gz xvc
cd -

- name: Publish
uses: softprops/action-gh-release@v1
# TODO: if any of the build step fails, the release should be deleted.
with:
files: "xvc*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy-macos:
name: deploy-macos
# needs: [coverage]
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-latest
strategy:
matrix:
target: [x86_64-apple-darwin]

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: ${{ matrix.target }}

- name: Build target
run: cargo build --release --target ${{ matrix.target }}

- name: Package
shell: bash
run: |
#strip target/${{ matrix.target }}/release/xvc
cd target/${{ matrix.target }}/release
tar czvf ../../../xvc-${{ github.ref_name}}-${{ matrix.target }}.tar.gz xvc
cd -

- name: Publish
uses: softprops/action-gh-release@v1
# TODO: if any of the build step fails, the release should be deleted.
with:
files: "xvc*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# deploy-linux:
# name: deploy-linux
# needs: [coverage]
# if: startsWith(github.ref, 'refs/tags/')
# runs-on: ubuntu-latest
# strategy:
# matrix:
# target:
# [
# x86_64-unknown-linux-gnu,
# aarch64-unknown-linux-gnu,
# aarch64-linux-android,
# ]
#
# steps:
# - name: Checkout
# uses: actions/checkout@v1
#
# - name: Install rust
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: stable
# targets: ${{ matrix.target }}
#
# - name: Build target
# run: cargo build --release --target ${{ matrix.target }} --features=bundled-openssl
#
# - name: Package
# shell: bash
# run: |
# #strip target/${{ matrix.target }}/release/xvc
# cd target/${{ matrix.target }}/release
# tar czvf ../../../xvc-${{ github.ref_name }}-${{ matrix.target }}.tar.gz xvc
# cd -
#
# - name: Publish
# uses: softprops/action-gh-release@v1
# # TODO: if any of the build step fails, the release should be deleted.
# with:
# files: "xvc*"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# deploy-windows:
# name: deploy-windows
# needs: [coverage]
# if: startsWith(github.ref, 'refs/tags/')
# runs-on: windows-latest
# strategy:
# matrix:
# target: [x86_64-pc-windows-gnu]
# steps:
# - name: Checkout
# uses: actions/checkout@v1
#
# - name: Install rust
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: stable
# targets: ${{ matrix.target }}
#
# - name: Build target
# run: cargo build --release --target ${{ matrix.target }} --features bundled-sqlite
#
# - name: Package
# shell: bash
# run: |
# #strip target/${{ matrix.target }}/release/xvc
# cd target/${{ matrix.target }}/release
# tar czvf ../../../xvc-${{ github.ref_name}}-${{ matrix.target }}.tar.gz xvc
# cd -
#
# - name: Publish
# uses: softprops/action-gh-release@v1
# # TODO: if any of the build step fails, the release should be deleted.
# with:
# files: "xvc*"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# deploy-macos:
# name: deploy-macos
# needs: [coverage]
# if: startsWith(github.ref, 'refs/tags/')
# runs-on: macos-latest
# strategy:
# matrix:
# target:
# [x86_64-apple-darwin, aarch64-apple-darwin, x86_64-unknown-freebsd]
#
# steps:
# - name: Checkout
# uses: actions/checkout@v1
#
# - name: Install rust
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: stable
# targets: ${{ matrix.target }}
#
# - name: Build target
# run: cargo build --release --target ${{ matrix.target }}
#
# - name: Package
# shell: bash
# run: |
# #strip target/${{ matrix.target }}/release/xvc
# cd target/${{ matrix.target }}/release
# tar czvf ../../../xvc-${{ github.ref_name}}-${{ matrix.target }}.tar.gz xvc
# cd -
#
# - name: Publish
# uses: softprops/action-gh-release@v1
# # TODO: if any of the build step fails, the release should be deleted.
# with:
# files: "xvc*"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Xvc Changelog

## Unreleased


## v0.6.13 (2024-12-30)

- PR: <https://github.com/iesahin/xvc/pull/263>
- Removed reflink from default features
- Hide directories in xvc file list output by default and add --show-dirs option
- Set core.quotepath=off in git ls-files call to get paths in UTF-8 to match
- Handle missing files in xvc file bring more gracefully
- Fixed git version string to also consider lightweight tags
- Fixed xvc file remove bug that panics when content digests not found
- Fixed xvc file list help text and added a test/example for ignored files
- Added more targets to Github builds
- Releases now use houseabsolute/actions-rust-cross@v0

## 0.6.12 (2024-11-30)

- PR: <https://github.com/iesahin/xvc/pull/262>
Expand Down
3 changes: 1 addition & 2 deletions book/src/ref/xvc-file-copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ XC [..] c85f3e81 data.txt
FH 19 [..] c85f3e81 c85f3e81 another-set/data3.txt
FH 19 [..] c85f3e81 c85f3e81 another-set/data2.txt
FH 19 [..] c85f3e81 c85f3e81 another-set/data.txt
DX 160 [..] another-set

Total #: 9 Workspace Size: [..] Cached Size: 19
Total #: 8 Workspace Size: [..] Cached Size: 19


```
Expand Down
Loading
Loading