Skip to content

Commit

Permalink
Disable snap build
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Mar 18, 2024
1 parent a6b1942 commit 0285f08
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
sudo apt-get update --fix-missing
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev gcc pkg-config curl git make ca-certificates
sudo apt-get install -y snapd
sudo snap install snapcraft --classic
sudo snap install multipass --classic --beta
# sudo snap install snapcraft --classic
# sudo snap install multipass --classic --beta
- if: matrix.build == 'linux-musl'
run: sudo apt-get install -y musl-tools
Expand All @@ -84,12 +84,12 @@ jobs:
- name: Running cargo build
run: cargo build --locked --release --target ${{ matrix.target }}

- name: Running snapcraft build
run: |
snapcraft
printf ' [ INFO ] generated <snapcraft> files include:\n'
command ls -Al | grep "\.snap" | awk '{ print $9 }'
mv ./*.snap ./xplr.snap
# - name: Running snapcraft build
# run: |
# snapcraft
# printf ' [ INFO ] generated <snapcraft> files include:\n'
# command ls -Al | grep "\.snap" | awk '{ print $9 }'
# mv ./*.snap ./xplr.snap

- name: Install gpg secret key
run: |
Expand Down Expand Up @@ -117,6 +117,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Cleaning snapcraft
# run: |
# command rm --verbose ./*.snap
# snapcraft clean

publish-gpg-signature:
name: Publishing GPG signature
runs-on: ubuntu-latest
Expand All @@ -141,10 +146,6 @@ jobs:
source.tar.gz.asc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleaning snapcraft
run: |
command rm --verbose ./*.snap
snapcraft clean

publish-cargo:
name: Publishing to Cargo
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ path = './benches/criterion.rs'

[package]
name = 'xplr'
version = '0.21.6'
version = '0.21.7'
authors = ['Arijit Basu <[email protected]>']
edition = '2021'
description = 'A hackable, minimal, fast TUI file explorer'
Expand Down
4 changes: 2 additions & 2 deletions docs/en/src/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ compatibility.

### Instructions

#### [v0.20.2][48] -> [v0.21.6][49]
#### [v0.20.2][48] -> [v0.21.7][49]

- Some plugins might stop rendering colors. Wait for them to update.
- Rename `xplr.config.general.sort_and_filter_ui.search_identifier` to
Expand Down Expand Up @@ -525,5 +525,5 @@ Else do the following:
[46]: https://github.com/sayanarijit/xplr/releases/tag/v0.18.0
[47]: https://github.com/sayanarijit/xplr/releases/tag/v0.19.4
[48]: https://github.com/sayanarijit/xplr/releases/tag/v0.20.2
[49]: https://github.com/sayanarijit/xplr/releases/tag/v0.21.6
[49]: https://github.com/sayanarijit/xplr/releases/tag/v0.21.7
[50]: https://github.com/lotabout/skim#search-syntax
12 changes: 6 additions & 6 deletions src/lua/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,24 +160,24 @@ mod tests {
assert!(check_version(VERSION, "foo path").is_ok());

// Current release if OK
assert!(check_version("0.21.6", "foo path").is_ok());
assert!(check_version("0.21.7", "foo path").is_ok());

// Prev major release is ERR
// - Not yet

// Prev minor release is ERR (Change when we get to v1)
assert!(check_version("0.20.6", "foo path").is_err());
assert!(check_version("0.20.7", "foo path").is_err());

// Prev bugfix release is OK
assert!(check_version("0.21.5", "foo path").is_ok());
assert!(check_version("0.21.6", "foo path").is_ok());

// Next major release is ERR
assert!(check_version("1.20.6", "foo path").is_err());
assert!(check_version("1.20.7", "foo path").is_err());

// Next minor release is ERR
assert!(check_version("0.22.6", "foo path").is_err());
assert!(check_version("0.22.7", "foo path").is_err());

// Next bugfix release is ERR (Change when we get to v1)
assert!(check_version("0.21.7", "foo path").is_err());
assert!(check_version("0.21.8", "foo path").is_err());
}
}

0 comments on commit 0285f08

Please sign in to comment.