-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from Blooym/add-flatpak-nuget-deps-ci
ci: add quick way to generate nuget deps
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 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,40 @@ | ||
name: "Nuget Dependencies" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Generate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Setup Flatpak | ||
run: | | ||
sudo apt update -y | ||
sudo apt install flatpak -y | ||
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | ||
flatpak install --user org.freedesktop.Sdk.Extension.dotnet6/x86_64/22.08 -y # Update this when needed. | ||
flatpak install --user org.freedesktop.Sdk/x86_64/22.08 -y # As well as this, if dependency generation is failing. | ||
- name: Generate nuget-dependencies.json | ||
working-directory: ./src/XIVLauncher.Core/ | ||
run: | | ||
curl -LO https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/dotnet/flatpak-dotnet-generator.py | ||
python3 flatpak-dotnet-generator.py nuget-dependencies.json XIVLauncher.Core.csproj | ||
- name: Upload nuget-dependencies.json | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nuget-dependencies | ||
path: | | ||
./src/XIVLauncher.Core/nuget-dependencies.json |