Skip to content

Commit

Permalink
test mac-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Jan 26, 2024
1 parent 6bc914a commit f685abb
Showing 1 changed file with 5 additions and 61 deletions.
66 changes: 5 additions & 61 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,12 @@
name: Release CI

on:
push:
tags:
- "v*"
push:
branches: [mac-arm64]

jobs:
build-winform:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Restore dependencies
run: dotnet restore "./src/IME WL Converter Win"

- name: Publish
run: dotnet publish --configuration Release --output ./publish "./src/IME WL Converter Win"

- name: Archive Release
run: 7z a -tzip imewlconverter_Windows.zip publish/

- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
writeToFile: false
includeInvalidCommits: true

- uses: ncipollo/release-action@v1
with:
artifacts: "imewlconverter_Windows.zip"
allowUpdates: true
body: |
${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}

build-cmd:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13-arm64]
runs-on: ${{ matrix.os }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

Expand All @@ -59,24 +19,8 @@ jobs:
run: dotnet restore ./src/ImeWlConverterCmd

- name: Publish
run: dotnet publish --configuration Release --output ./publish ./src/ImeWlConverterCmd
run: dotnet publish --configuration Release --output ./publish ./src/ImeWlConverterCmd -a arm64

- name: Archive Release
run: tar -czf imewlconverter_${{ runner.os }}_${{ runner.arch }}.tar.gz publish/*
run: tar -czf imewlconverter_${{ runner.os }}-aarch64.tar.gz publish/*

- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
writeToFile: false
includeInvalidCommits: true

- uses: ncipollo/release-action@v1
with:
artifacts: "imewlconverter_${{ runner.os }}_${{ runner.arch }}.tar.gz"
allowUpdates: true
body: |
${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f685abb

Please sign in to comment.