Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Oct 12, 2024
1 parent ed9b646 commit c2a7a7b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ jobs:
rust-target: x86_64-pc-windows-msvc
artifact-name: win64
artifact-file: ludusavi.exe
permissions: false
- os: windows-latest
rust-target: i686-pc-windows-msvc
artifact-name: win32
artifact-file: ludusavi.exe
permissions: false
- os: ubuntu-20.04
rust-target: x86_64-unknown-linux-gnu
artifact-name: linux
artifact-file: ludusavi
permissions: true
- os: macos-12
rust-target: x86_64-apple-darwin
artifact-name: mac
artifact-file: ludusavi
permissions: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v5
Expand All @@ -46,7 +50,17 @@ jobs:
- if: ${{ matrix.os == 'ubuntu-20.04' }}
run: sudo apt-get update && sudo apt-get install -y gcc libxcb-composite0-dev
- run: cargo build --release
- uses: actions/upload-artifact@v4
- if: ${{ matrix.permissions }}
run: |
cd target/release
zip artifact.zip ${{ matrix.artifact-file }}
- if: ${{ matrix.permissions }}
uses: actions/upload-artifact@v4
with:
name: ludusavi-v${{ env.LUDUSAVI_VERSION }}-${{ matrix.artifact-name }}
path: target/release/artifact.zip
- if: ${{ !matrix.permissions }}
uses: actions/upload-artifact@v4
with:
name: ludusavi-v${{ env.LUDUSAVI_VERSION }}-${{ matrix.artifact-name }}
path: target/release/${{ matrix.artifact-file }}
Expand Down

0 comments on commit c2a7a7b

Please sign in to comment.