Skip to content

Commit 59a90d3

Browse files
committed
no windows for now
1 parent de481d0 commit 59a90d3

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ jobs:
3434
name: cigen-linux-arm64
3535
use-cross: true
3636

37-
# Windows builds
38-
- os: windows-latest
39-
target: x86_64-pc-windows-msvc
40-
name: cigen-windows-amd64
41-
- os: windows-latest
42-
target: aarch64-pc-windows-msvc
43-
name: cigen-windows-arm64
44-
4537
steps:
4638
- name: Checkout repository
4739
uses: actions/checkout@v4
@@ -61,10 +53,6 @@ jobs:
6153
with:
6254
targets: ${{ matrix.target }}
6355

64-
- name: Add rust target (conditional)
65-
if: (matrix.target == 'x86_64-apple-darwin' && matrix.os == 'macos-latest') || (matrix.target == 'aarch64-pc-windows-msvc' && matrix.os == 'windows-latest')
66-
run: rustup target add ${{ matrix.target }}
67-
6856
- name: Install cross (for cross-compilation)
6957
if: matrix.use-cross
7058
run: cargo install cross --git https://github.com/cross-rs/cross
@@ -84,15 +72,9 @@ jobs:
8472
run: |
8573
set -e
8674
cd "target/${{ matrix.target }}/release"
87-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
88-
7z a "../../../${{ matrix.name }}.zip" cigen.exe
89-
cd ../../../
90-
echo "ASSET_PATH=${{ matrix.name }}.zip" >> "$GITHUB_ENV"
91-
else
92-
tar czf "../../../${{ matrix.name }}.tar.gz" cigen
93-
cd ../../../
94-
echo "ASSET_PATH=${{ matrix.name }}.tar.gz" >> "$GITHUB_ENV"
95-
fi
75+
tar czf "../../../${{ matrix.name }}.tar.gz" cigen
76+
cd ../../../
77+
echo "ASSET_PATH=${{ matrix.name }}.tar.gz" >> "$GITHUB_ENV"
9678
9779
- name: Upload artifact
9880
uses: actions/upload-artifact@v4
@@ -175,8 +157,6 @@ jobs:
175157
- macOS (Apple Silicon): https://github.com/${{ github.repository }}/releases/download/${{ steps.version.outputs.tag }}/cigen-macos-arm64.tar.gz
176158
- Linux (x86_64): https://github.com/${{ github.repository }}/releases/download/${{ steps.version.outputs.tag }}/cigen-linux-amd64.tar.gz
177159
- Linux (ARM64): https://github.com/${{ github.repository }}/releases/download/${{ steps.version.outputs.tag }}/cigen-linux-arm64.tar.gz
178-
- Windows (x86_64): https://github.com/${{ github.repository }}/releases/download/${{ steps.version.outputs.tag }}/cigen-windows-amd64.zip
179-
- Windows (ARM64): https://github.com/${{ github.repository }}/releases/download/${{ steps.version.outputs.tag }}/cigen-windows-arm64.zip
180160
EOF
181161
182162
- name: Create GitHub Release
@@ -189,7 +169,6 @@ jobs:
189169
prerelease: ${{ contains(steps.version.outputs.tag, '-') }}
190170
files: |
191171
artifacts/**/*.tar.gz
192-
artifacts/**/*.zip
193172
artifacts/**/*.sha256
194173
195174
docker_image:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ RUST_LOG=debug cargo run
195195
./scripts/create-release-tag.sh --no-push
196196
```
197197

198-
- When the `vX.Y.Z` tag is pushed, GitHub Actions builds binaries for Linux, macOS, and Windows, generates checksums, and creates a GitHub Release with assets.
198+
- When the `vX.Y.Z` tag is pushed, GitHub Actions builds binaries for Linux and macOS, generates checksums, and creates a GitHub Release with assets.
199199

200200
### Git Hooks with Lefthook
201201

src/commands/graph.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ fn check_graphviz() -> Result<()> {
174174
eprintln!(" sudo pacman -S graphviz");
175175
}
176176

177-
#[cfg(target_os = "windows")]
178-
eprintln!(" Download from: https://graphviz.org/download/");
177+
// Windows is not supported
179178

180179
anyhow::bail!("Graphviz not found");
181180
}

0 commit comments

Comments
 (0)