mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 13:33:29 +00:00
added beta publish action
This commit is contained in:
56
.github/workflows/publish_early.yaml
vendored
Normal file
56
.github/workflows/publish_early.yaml
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
name: Publish Beta
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ rust_extension, dev ]
|
||||
pull_request:
|
||||
branches: [ dev ]
|
||||
|
||||
jobs:
|
||||
build_extension:
|
||||
strategy:
|
||||
matrix:
|
||||
arrays: [
|
||||
os: { tag: "windows-latest", target: "i686-pc-windows-msvc" },
|
||||
os: { tag: "windows-latest", target: "x86_64-pc-windows-msvc" },
|
||||
]
|
||||
runs-on: ${{ matrix.arrays.os.tag }}
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Install latest
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
target: ${{ matrix.arrays.os.target }}
|
||||
toolchain: stable
|
||||
default: true
|
||||
- name: Cargo Build
|
||||
run: cargo build --release
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.arrays.os.target }}
|
||||
path: target/release/armatak.dll
|
||||
if-no-files-found: error
|
||||
retention-days: 30
|
||||
package:
|
||||
needs: build_extension
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: x86_64-pc-windows-msvc
|
||||
- run: mv armatak.dll armatak_x64.dll
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: i686-pc-windows-msvc
|
||||
- name: Setup HEMTT
|
||||
uses: arma-actions/hemtt@v1
|
||||
- name: Build
|
||||
run: hemtt release
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: armatak.zip
|
||||
path: 'releases/armatak-latest.zip'
|
||||
Reference in New Issue
Block a user