From 14e4a2ef7cbc4bc6fc04cf47ec6557623e345901 Mon Sep 17 00:00:00 2001 From: ArthurHeitmann <37270165+ArthurHeitmann@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:58:15 +0200 Subject: [PATCH] ci build --- .github/workflows/CI_windows.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/CI_windows.yml diff --git a/.github/workflows/CI_windows.yml b/.github/workflows/CI_windows.yml new file mode 100644 index 0000000..e2cb234 --- /dev/null +++ b/.github/workflows/CI_windows.yml @@ -0,0 +1,42 @@ +name: CI Windows + +on: + push: + branches: + - master + - mgrr + - gh-actions + +jobs: + flutter-build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Download assets + run: | + $url = "https://github.com/ArthurHeitmann/F-SERVO/releases/download/assetsV0.7.0/assets.7z" + $output = "${{ runner.temp }}\assets.7z" + Invoke-WebRequest -Uri $url -OutFile $output + - name: Extract assets + run: 7z x ${{ runner.temp }}/assets.7z -o.\assets + + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.22.2' + + - name: Get Packages + run: flutter pub get + + - name: Build Release + run: flutter build windows --release + + - name: Archive Release + uses: actions/upload-artifact@v2 + with: + name: windows + path: build/windows/x64/runner/Release