From 58eccf1af83703086a5b165b63b851aa8db26859 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Tue, 1 Feb 2022 10:33:34 +0100 Subject: [PATCH 1/4] Uncomment building artifacts --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 051d786..c252b21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,10 +43,10 @@ jobs: working-directory: ./AM2RLauncher run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" # Steps for uploading artifacts. We don't need them currently, so they're commented out. - #- name: Zip to Archive - # run: 7z a -tzip ${{ matrix.os }}.zip ./${{ matrix.ARTIFACT }} - #- name: Upload Artifacts - # uses: actions/upload-artifact@v1.0.0 - # with: - # name: ${{ matrix.os }} - # path: ${{ matrix.os }}.zip + - name: Zip to Archive + run: 7z a -tzip ${{ matrix.os }}.zip ./${{ matrix.ARTIFACT }} + - name: Upload Artifacts + uses: actions/upload-artifact@v1.0.0 + with: + name: ${{ matrix.os }} + path: ${{ matrix.os }}.zip From 343023a9d26fdae8530da22a9bb0802f2d61ebb1 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Sat, 19 Feb 2022 10:06:10 +0100 Subject: [PATCH 2/4] Try to set mac attributes correctly. --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd1569b..074b60b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,12 +21,15 @@ jobs: configuration: [Release] include: - os: ubuntu-latest + ATTR: echo Nothing-to-do COMMAND: AM2RLauncher.Gtk -c Release -p:PublishSingleFile=true -p:DebugType=embedded -r ubuntu.18.04-x64 --no-self-contained ARTIFACT: AM2RLauncher/AM2RLauncher.Gtk/bin/Release/net5.0/ubuntu.18.04-x64/publish/ - os: macOS-latest + ATTR: xattr -rd com.apple.quarantine AM2RLauncher/AM2RLauncher.Mac/bin/Release/net6.0/osx-x64/AM2RLauncher.Mac.app/ COMMAND: AM2RLauncher.Mac -c Release -r osx-x64 --no-self-contained ARTIFACT: AM2RLauncher/AM2RLauncher.Mac/bin/Release/net6.0/osx-x64/AM2RLauncher.Mac.app/ - os: windows-latest + ATTR: echo Nothing-to-do COMMAND: AM2RLauncher.Wpf -c Release -r win-x86 -o builds\win86 ARTIFACT: AM2RLauncher\AM2RLauncher.Wpf\bin\Release\net48\win-x86\ runs-on: ${{ matrix.os }} @@ -45,6 +48,8 @@ jobs: working-directory: ./AM2RLauncher run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" # Steps for uploading artifacts. We don't need them currently, so they're commented out. + - name: Set Attributes + run: $ {{ matrix.ATTR }} - name: Zip to Archive run: 7z a -tzip ${{ matrix.os }}.zip ./${{ matrix.ARTIFACT }} - name: Upload Artifacts From 354e0d4597054fc25cac940d2f4d7dc4914e1849 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Sat, 19 Feb 2022 10:08:59 +0100 Subject: [PATCH 3/4] Make actions manually runnable --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 074b60b..1b38af4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ on: paths-ignore: - 'README.md' - '.github/**' + workflow_dispatch: jobs: build: From c376ca15c58e438b7f395dd0c7af4813121da4b6 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Sat, 19 Feb 2022 10:10:49 +0100 Subject: [PATCH 4/4] actions: fix typo --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b38af4..99b4fa2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: run: dotnet publish ${{ matrix.COMMAND }} -c "${{ matrix.configuration }}" # Steps for uploading artifacts. We don't need them currently, so they're commented out. - name: Set Attributes - run: $ {{ matrix.ATTR }} + run: ${{ matrix.ATTR }} - name: Zip to Archive run: 7z a -tzip ${{ matrix.os }}.zip ./${{ matrix.ARTIFACT }} - name: Upload Artifacts