This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: caesay # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
name: Build | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build-fusion: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Print dotnet version | ||
run: dotnet --info | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set Library Versions | ||
run: dotnet run --set-version | ||
|
||
- name: Build Fusion | ||
run: dotnet run | ||
|
||
build-cli: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Print dotnet version | ||
run: dotnet --info | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set Library Versions | ||
run: dotnet run --set-version | ||
|
||
- name: Set Rust Flags (Windows) | ||
shell: pwsh | ||
run: | | ||
rustup target add i686-pc-windows-msvc | ||
Add-Content -Path $env:GITHUB_ENV -Value "EXTRA_RUST_FLAGS=--target i686-pc-windows-msvc --features windows" | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
|
||
- name: Set Rust Flags (Linux) | ||
run: echo "EXTRA_RUST_FLAGS=--target x86_64-unknown-linux-gnu" >> "$GITHUB_ENV" | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
|
||
- name: Build Rust | ||
working-directory: for-rust | ||
run: cargo build --release ${{ env.EXTRA_RUST_FLAGS }} | ||
|
||
- name: Collect Rust Binaries (Windows) | ||
working-directory: for-rust/target | ||
run: | | ||
copy i686-pc-windows-msvc\release\*.exe release | ||
copy i686-pc-windows-msvc\release\*.pdb release | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
|
||
- name: Collect Rust Binaries (Linux) | ||
working-directory: for-rust/target | ||
run: cp ./x86_64-unknown-linux-gnu/release/vfusion ./release/VfusionNix | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
|
||
- name: Collect Rust Binaries (OSX) | ||
working-directory: for-rust/target/release | ||
run: cp vfusion VfusionMac | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
|
||
- name: Upload Rust Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: vfusion-cli-${{ matrix.os }} | ||
path: | | ||
for-rust/target/release/VfusionMac | ||
for-rust/target/release/VfusionNix | ||
for-rust/target/release/*.exe | ||
# package: | ||
# runs-on: ubuntu-latest | ||
# needs: [build] | ||
# steps: | ||
# - name: Print dotnet version | ||
# run: dotnet --info | ||
|
||
# - uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 0 | ||
|
||
# - uses: actions/cache@v4 | ||
# with: | ||
# path: ~/.nuget/packages | ||
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
# restore-keys: ${{ runner.os }}-nuget- | ||
|
||
# - name: Download Rust OSX | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: rust-macos-latest | ||
# path: for-rust/target/release | ||
|
||
# - name: Download Rust Windows | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: rust-windows-latest | ||
# path: for-rust/target/release | ||
|
||
# - name: Download Rust Linux | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: rust-ubuntu-latest | ||
# path: for-rust/target/release | ||
|
||
# - name: Build .NET | ||
# run: dotnet build -c Release /p:PackRustAssets=true | ||
|
||
# - name: Upload Package Artifacts | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: packages | ||
# path: build/Release/*.nupkg | ||
|
||
# - name: Publish to GitHub Packages | ||
# shell: pwsh | ||
# run: dotnet nuget push build/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate |
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
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