Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jun 6, 2024
1 parent fd2798d commit 8f31652
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
45 changes: 33 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,48 @@ on:
merge_group:
types: [checks_requested]

env:
RUST_VERSION: "1.70"

jobs:
build:
runs-on: windows-latest
name: Smoke test - build only
name: Build
outputs:
unsigned-artifact-id: ${{ steps.upload-unsigned.outputs.artifact-id }}

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756

- name: Setup rustup
run: |
rustup default ${{ env.RUST_VERSION }}
rustup update
run: rustup target add i686-pc-windows-msvc

- name: Build
run: |
cmake -B build
cmake --build build
run: scripts/build_installer.bat

- id: upload-unsigned
uses: actions/upload-artifact@v4
with:
name: Unsigned Installer
path: dist\windows-chewing-tsf-unsigned.exe

code-signing:
runs-on: ubuntu-latest
name: Code Signing
needs: [build]
steps:
- uses: actions/download-artifact@v4
- name: Sign Artifact
uses: signpath/[email protected]
with:
api-token: "${{ secrets.SIGNPATH_API_TOKEN }}"
organization-id: "e8feb3e7-02b0-4e78-aa0a-f3431f374964"
project-slug: "windows-chewing-tsf"
signing-policy-slug: "test-signing"
github-artifact-id: "${{ needs.build.outputs.unsigned-artifact-id }}"
wait-for-completion: true
output-artifact-directory: dist\windows-chewing-tsf.exe
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Signed Installer
path: dist\windows-chewing-tsf.exe
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ platform: x64
test: false
environment:
SIGN_PATH_TOKEN:
secure: w9Tr3wEpZP53yt8gtJ0G+/hUbjJYuyyPjtEGqEgUOeFYyLM0fqoC/OWkJnRkqhgt
secure: fRbWaecHevSTmuonKn2cM33Pz5u8mC1XRewPvnalNqNf2Mgqzyor4fhMlJQMPVYM
init:
- ps: $env:BUILD_YYYYMMDD=(Get-Date).ToString("yyyyMMdd")
install:
Expand Down

0 comments on commit 8f31652

Please sign in to comment.