actually use distribution scripts (#10) #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Validate Merge | |
on: | |
push: | |
branches: | |
- trunk | |
jobs: | |
package-win: | |
name: Package Windows systems | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update stable | |
- name: Build Rust Code | |
run: cargo build --release --all | |
- name: Build Packages | |
run: | | |
cd installer-scripts/win/ | |
dotnet --version | |
dotnet tool install --global wix | |
wix extension add WiXToolset.UI.wixext/4.0.4 | |
wix extension add WiXToolset.Util.wixext/4.0.5 | |
wix build sprig.wxs -ext WiXToolset.Util.wixext -ext WiXToolset.UI.wixext -defaultcompressionlevel high -arch "x64" -bindpath "../../" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_win_amd64.msi | |
path: installer-scripts/win/sprig.msi | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_win_amd64.wixpdb | |
path: installer-scripts/win/sprig.wixpdb | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig-target-directory-win | |
path: | | |
target/release/ | |
!target/release/.fingerprint | |
!target/release/build | |
!target/release/deps | |
!target/release/examples | |
!target/release/incremental | |
package-osx-intel: | |
name: Package Mac OS X systems | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update stable | |
- name: Build Rust Code | |
run: cargo build --release --all | |
- name: Build Packages | |
run: | | |
cd installer-scripts/osx/ | |
./package.sh intel | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_osx_intel.dist | |
path: installer-scripts/osx/working-dir-pkg/sprig.dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_osx_intel.pkg | |
path: installer-scripts/osx/working-dir-pkg/sprig.pkg | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig-target-directory-osx-intel | |
path: | | |
target/release/ | |
!target/release/.fingerprint | |
!target/release/build | |
!target/release/deps | |
!target/release/examples | |
!target/release/incremental | |
package-osx-arn: | |
name: Package Mac OS X systems (ARM) | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update stable | |
- name: Build Rust Code | |
run: cargo build --release --all | |
- name: Build Packages | |
run: | | |
cd installer-scripts/osx/ | |
./package.sh arm | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_osx_arm.dist | |
path: installer-scripts/osx/working-dir-pkg/sprig.dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_osx_arm.pkg | |
path: installer-scripts/osx/working-dir-pkg/sprig.pkg | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig-target-directory-osx-arm | |
path: | | |
target/release/ | |
!target/release/.fingerprint | |
!target/release/build | |
!target/release/deps | |
!target/release/examples | |
!target/release/incremental | |
package-unix: | |
name: Package Unix systems | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update stable | |
- name: Install NFPM | |
run: | | |
echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list | |
sudo apt update | |
sudo apt install nfpm -y | |
- name: Build Rust Code | |
run: cargo build --release --all | |
- name: Build Packages | |
run: | | |
cd installer-scripts/unix/ | |
nfpm package -p deb | |
nfpm package -p rpm | |
nfpm package -p apk | |
nfpm package -p archlinux | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_unix_amd64.deb | |
path: installer-scripts/unix/sprig_0.0.6_amd64.deb | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_unix_amd64.rpm | |
path: installer-scripts/unix/sprig-0.0.6-1.x86_64.rpm | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_unix_amd64.apk | |
path: installer-scripts/unix/sprig_0.0.6_x86_64.apk | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig_unix_amd64.pkg.tar.zst | |
path: installer-scripts/unix/sprig-0.0.6-1-x86_64.pkg.tar.zst | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sprig-target-directory-unix | |
path: | | |
target/release/ | |
!target/release/.fingerprint | |
!target/release/build | |
!target/release/deps | |
!target/release/examples | |
!target/release/incremental |