From de776e8d5c5812e46654148be438c1db9e815bc3 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Mon, 1 Mar 2021 11:46:35 -0800 Subject: [PATCH 1/5] build-win-wpf GitHub Action --- .github/workflows/build-win-wpf.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build-win-wpf.yml diff --git a/.github/workflows/build-win-wpf.yml b/.github/workflows/build-win-wpf.yml new file mode 100644 index 000000000..271240ddd --- /dev/null +++ b/.github/workflows/build-win-wpf.yml @@ -0,0 +1,40 @@ +name: Build-Windows-WPF + +on: workflow_dispatch + +jobs: + + windows: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Replace token 1 + run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go + + - name: Replace token 2 + run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go + + - name: win-node-env + run: npm install -g win-node-env + + - name: npm install + run: cd webapp; npm install --no-optional + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + + - name: Build Windows app + run: make win-wpf-app + env: + BUILD_NUMBER: ${{ github.run_id }} + + - name: Upload app package + uses: actions/upload-artifact@v1 + with: + name: focalboard.msix + path: ${{ github.workspace }}/win-wpf/focalboard.msix From 902e3484b2fd7e221c5d55c5cc3389df073b8c4d Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Mon, 1 Mar 2021 11:55:54 -0800 Subject: [PATCH 2/5] build-win-wpf: Add msbuild to path --- .github/workflows/build-win-wpf.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-win-wpf.yml b/.github/workflows/build-win-wpf.yml index 271240ddd..91391fbf3 100644 --- a/.github/workflows/build-win-wpf.yml +++ b/.github/workflows/build-win-wpf.yml @@ -17,6 +17,9 @@ jobs: - name: Replace token 2 run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + - name: win-node-env run: npm install -g win-node-env From d2de584f364d7c63dc1f00d335c282408a15cd5a Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Mon, 1 Mar 2021 12:14:56 -0800 Subject: [PATCH 3/5] build-win-wpf: nuget restore --- .github/workflows/build-win-wpf.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-win-wpf.yml b/.github/workflows/build-win-wpf.yml index 91391fbf3..bb22ccf8c 100644 --- a/.github/workflows/build-win-wpf.yml +++ b/.github/workflows/build-win-wpf.yml @@ -31,7 +31,13 @@ jobs: with: go-version: 1.15 - - name: Build Windows app + - name: nuget restore + - uses: nuget/setup-nuget@v1 + with: + nuget-version: '5.x' + run: nuget restore win-wpf\Focalboard.sln + + - name: Build Windows WPF app run: make win-wpf-app env: BUILD_NUMBER: ${{ github.run_id }} From ae030522d9fb71d24182c2b5c01b7ed3cef1c05d Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Mon, 1 Mar 2021 12:17:57 -0800 Subject: [PATCH 4/5] build-win-wpf --- .github/workflows/build-win-wpf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-win-wpf.yml b/.github/workflows/build-win-wpf.yml index bb22ccf8c..9bfffc34e 100644 --- a/.github/workflows/build-win-wpf.yml +++ b/.github/workflows/build-win-wpf.yml @@ -32,7 +32,7 @@ jobs: go-version: 1.15 - name: nuget restore - - uses: nuget/setup-nuget@v1 + uses: nuget/setup-nuget@v1 with: nuget-version: '5.x' run: nuget restore win-wpf\Focalboard.sln From 46b50024f960ceae209ee7549558e848d490eae0 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Mon, 1 Mar 2021 12:22:07 -0800 Subject: [PATCH 5/5] build-win-wpf --- .github/workflows/build-win-wpf.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-win-wpf.yml b/.github/workflows/build-win-wpf.yml index 9bfffc34e..0150f0d4e 100644 --- a/.github/workflows/build-win-wpf.yml +++ b/.github/workflows/build-win-wpf.yml @@ -31,10 +31,12 @@ jobs: with: go-version: 1.15 - - name: nuget restore + - name: Setup NuGet uses: nuget/setup-nuget@v1 with: nuget-version: '5.x' + + - name: NuGet Restore run: nuget restore win-wpf\Focalboard.sln - name: Build Windows WPF app