Skip to content

Commit

Permalink
test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlntin committed Mar 20, 2023
1 parent e8b9ad0 commit 7343925
Showing 1 changed file with 25 additions and 38 deletions.
63 changes: 25 additions & 38 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@ jobs:
strategy:
matrix:
include:
# - os: ubuntu-20.04
# target: x86_64-unknown-linux-gnu
# use-cross: false
- os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
use-cross: false

# - os: ubuntu-20.04
# target: x86_64-unknown-linux-musl
# use-cross: false
- os: ubuntu-20.04
target: x86_64-unknown-linux-musl
use-cross: false

# - os: ubuntu-20.04
# target: aarch64-unknown-linux-gnu
# use-cross: true
- os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
use-cross: true

# - os: ubuntu-20.04
# target: aarch64-unknown-linux-musl
# use-cross: true
- os: ubuntu-20.04
target: aarch64-unknown-linux-musl
use-cross: true

# - os: macos-latest
# target: x86_64-apple-darwin
# use-cross: false
- os: macos-latest
target: x86_64-apple-darwin
use-cross: false

# - os: macos-latest
# target: aarch64-apple-darwin
# use-cross: false
- os: macos-latest
target: aarch64-apple-darwin
use-cross: false

- os: windows-latest
target: x86_64-pc-windows-msvc
Expand All @@ -46,10 +46,6 @@ jobs:
with:
fetch-depth: 1

# - name: Set the version
# id: version
# run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -92,24 +88,15 @@ jobs:
- name: Rename files (only for Windows)
if: matrix.target == 'x86_64-pc-windows-msvc'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UPLOADTOOL_ISPRERELEASE: true
VERSION: ${{ github.ref_name }}
run: |
mkdir output/
mv target/${{ matrix.target }}/release/et.exe output/et-$env:VERSION-${{ matrix.target }}.exe
# - name: Upload files (only for Windows)
# uses: ncipollo/release-action@v1
# if: matrix.target == 'x86_64-pc-windows-msvc'
# with:
# allowUpdates: true
# artifacts: "output/*"
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UPLOADTOOL_ISPRERELEASE: true
run: |
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
bash upload.sh output/*
- name: Upload files (only for Windows)
uses: ncipollo/release-action@v1
if: matrix.target == 'x86_64-pc-windows-msvc'
with:
allowUpdates: true
artifacts: "output/*"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7343925

Please sign in to comment.