mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 19:59:36 +00:00
Compare commits
1 Commits
v0.9.0
...
d587eba5a4
| Author | SHA1 | Date | |
|---|---|---|---|
| d587eba5a4 |
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@@ -1191,6 +1191,7 @@ jobs:
|
|||||||
- name: Update Formula/dcr.rb
|
- name: Update Formula/dcr.rb
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ needs.setup.outputs.version }}"
|
VERSION="${{ needs.setup.outputs.version }}"
|
||||||
|
|
||||||
cat > Formula/dcr.rb <<FORMULA
|
cat > Formula/dcr.rb <<FORMULA
|
||||||
class Dcr < Formula
|
class Dcr < Formula
|
||||||
desc "Cargo-like utility to manage C/C++ projects"
|
desc "Cargo-like utility to manage C/C++ projects"
|
||||||
@@ -1199,37 +1200,36 @@ jobs:
|
|||||||
|
|
||||||
on_macos do
|
on_macos do
|
||||||
on_intel do
|
on_intel do
|
||||||
url "https://github.com/dexoron/dcr/releases/download/v#{version}/dcr-x86_64-apple-darwin-#{version}"
|
url "https://github.com/dexoron/dcr/releases/download/v${VERSION}/dcr-x86_64-apple-darwin-${VERSION}"
|
||||||
sha256 "${{ steps.sha.outputs.macos_x86 }}"
|
sha256 "${{ steps.sha.outputs.macos_x86 }}"
|
||||||
end
|
end
|
||||||
|
|
||||||
on_arm do
|
on_arm do
|
||||||
url "https://github.com/dexoron/dcr/releases/download/v#{version}/dcr-aarch64-apple-darwin-#{version}"
|
url "https://github.com/dexoron/dcr/releases/download/v${VERSION}/dcr-aarch64-apple-darwin-${VERSION}"
|
||||||
sha256 "${{ steps.sha.outputs.macos_arm }}"
|
sha256 "${{ steps.sha.outputs.macos_arm }}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
on_linux do
|
on_linux do
|
||||||
on_intel do
|
on_intel do
|
||||||
url "https://github.com/dexoron/dcr/releases/download/v#{version}/dcr-x86_64-unknown-linux-gnu-#{version}"
|
url "https://github.com/dexoron/dcr/releases/download/v${VERSION}/dcr-x86_64-unknown-linux-gnu-${VERSION}"
|
||||||
sha256 "${{ steps.sha.outputs.linux_x86 }}"
|
sha256 "${{ steps.sha.outputs.linux_x86 }}"
|
||||||
end
|
end
|
||||||
|
|
||||||
on_arm do
|
on_arm do
|
||||||
url "https://github.com/dexoron/dcr/releases/download/v#{version}/dcr-aarch64-unknown-linux-gnu-#{version}"
|
url "https://github.com/dexoron/dcr/releases/download/v${VERSION}/dcr-aarch64-unknown-linux-gnu-${VERSION}"
|
||||||
sha256 "${{ steps.sha.outputs.linux_arm }}"
|
sha256 "${{ steps.sha.outputs.linux_arm }}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
|
||||||
bin.install Dir["dcr*"].first => "dcr"
|
|
||||||
end
|
|
||||||
|
|
||||||
resource "man-pages" do
|
resource "man-pages" do
|
||||||
url "https://github.com/dexoron/dcr/releases/download/v#{version}/dcr-man-pages-#{version}.tar.gz"
|
url "https://github.com/dexoron/dcr/releases/download/v${VERSION}/dcr-man-pages-${VERSION}.tar.gz"
|
||||||
sha256 "${{ steps.sha.outputs.man_pages }}"
|
sha256 "${{ steps.sha.outputs.man_pages }}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
bin.install Dir["dcr*"].first => "dcr"
|
bin.install Dir["dcr*"].first => "dcr"
|
||||||
|
|
||||||
resource("man-pages").stage do
|
resource("man-pages").stage do
|
||||||
man1.install Dir["usr/share/man/man1/*.1"]
|
man1.install Dir["usr/share/man/man1/*.1"]
|
||||||
end
|
end
|
||||||
@@ -1326,4 +1326,4 @@ jobs:
|
|||||||
|
|
||||||
aws s3 sync dist/ "s3://${{ secrets.R2_BUCKET_NAME }}/${TAG}/" \
|
aws s3 sync dist/ "s3://${{ secrets.R2_BUCKET_NAME }}/${TAG}/" \
|
||||||
--endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
|
--endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
|
||||||
--region auto
|
--region auto
|
||||||
|
|||||||
Reference in New Issue
Block a user